Skip to content

Commit 6b7a65c

Browse files
committed
Fix build warning due to unused return value
1 parent e32d69a commit 6b7a65c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freertos-rust/src/timers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl Timer {
121121
if let Ok(callback_ptr) = timer.get_id() {
122122
let b = Box::from_raw(callback_ptr as *mut Box<dyn Fn(Timer)>);
123123
b(timer);
124-
Box::into_raw(b);
124+
let _ = Box::into_raw(b);
125125
}
126126
}
127127
}

0 commit comments

Comments
 (0)