Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepengu committed Sep 17, 2024
1 parent 12d8c25 commit 1e81498
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
6 changes: 1 addition & 5 deletions examples/rust-examples/mips64/dynamic-memory/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,9 @@ fn loop_fn() {
/// Stop condition function for task to execute.
fn stop_condition_fn() -> bool {
let value = unsafe { COUNTER.as_ptr().read() };
if value % 50 == 0 {
return true;
}
return false;
return value % 50 == 0;
}


#[no_mangle]
pub unsafe extern "C" fn __start() -> ! {
// Initialize Martos.
Expand Down
5 changes: 1 addition & 4 deletions examples/rust-examples/mips64/hello-world/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ fn loop_fn() {
/// Stop condition function for task to execute.
fn stop_condition_fn() -> bool {
let value = unsafe { COUNTER.as_ptr().read() };
if value % 50 == 0 {
return true;
}
return false;
return value % 50 == 0;
}

#[no_mangle]
Expand Down
5 changes: 1 addition & 4 deletions examples/rust-examples/mips64/timer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ fn loop_fn() {
/// Stop condition function for task to execute.
fn stop_condition_fn() -> bool {
let value = unsafe { COUNTER.as_ptr().read() };
if value % 50 == 0 {
return true;
}
return false;
return value % 50 == 0;
}

#[no_mangle]
Expand Down

0 comments on commit 1e81498

Please sign in to comment.