Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d452bf8 authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

floss: mgmt: Fix unused variable warning

Bug: 279512287
Tag: #floss
Test: mmm packages/modules/Bluetooth
Flag: EXEMPT, Floss-only changes
Change-Id: Ia93777eb677ccfdd565fdc7267f6f2bf26f585e3
parent 5de3fa6f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ fn get_clock() -> ClockId {
#[cfg(test)]
mod tests {
    use super::Alarm;
    use std::time::{Duration, Instant};
    use std::time::Duration;

    #[test]
    fn alarm_cancel_after_expired() {
@@ -84,7 +84,6 @@ mod tests {
        // Otherwise it's still ready and select! won't work.
        let runtime = tokio::runtime::Runtime::new().unwrap();
        runtime.block_on(async {
            let timer = Instant::now();
            let alarm = Alarm::new();
            alarm.reset(Duration::from_millis(10));
            alarm.expired().await;