From 6b7a65c3f1882d439b9ca594496cd3d3937e5d63 Mon Sep 17 00:00:00 2001 From: Steve Heindel Date: Tue, 15 Oct 2024 21:06:23 -0400 Subject: [PATCH] Fix build warning due to unused return value --- freertos-rust/src/timers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freertos-rust/src/timers.rs b/freertos-rust/src/timers.rs index fd0e7ae..3cc3053 100644 --- a/freertos-rust/src/timers.rs +++ b/freertos-rust/src/timers.rs @@ -121,7 +121,7 @@ impl Timer { if let Ok(callback_ptr) = timer.get_id() { let b = Box::from_raw(callback_ptr as *mut Box); b(timer); - Box::into_raw(b); + let _ = Box::into_raw(b); } } }