Skip to content

Commit

Permalink
Fix build warning due to unused return value
Browse files Browse the repository at this point in the history
  • Loading branch information
schteve committed Oct 21, 2024
1 parent e32d69a commit 6b7a65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freertos-rust/src/timers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl Timer {
if let Ok(callback_ptr) = timer.get_id() {
let b = Box::from_raw(callback_ptr as *mut Box<dyn Fn(Timer)>);
b(timer);
Box::into_raw(b);
let _ = Box::into_raw(b);
}
}
}
Expand Down

0 comments on commit 6b7a65c

Please sign in to comment.