mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-04-22 03:34:00 -04:00
fix warnings
This commit is contained in:
parent
5264e9848e
commit
78cdd82f36
@ -189,6 +189,7 @@ pub enum RevocationReason {
|
|||||||
AlgorithmChange = 2,
|
AlgorithmChange = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)] // Some of these fields are currently only used in Debug. That's fine.
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct Session {
|
pub struct Session {
|
||||||
pub user_id: i32,
|
pub user_id: i32,
|
||||||
|
@ -947,8 +947,10 @@ impl LockedDatabase {
|
|||||||
None => bail!("no such stream {}", stream),
|
None => bail!("no such stream {}", stream),
|
||||||
Some(s) => s,
|
Some(s) => s,
|
||||||
};
|
};
|
||||||
use odds::vec::VecExt;
|
|
||||||
s.on_live_segment.retain_mut(|cb| cb(l.clone()));
|
// TODO: use std's retain_mut after it's available in our minimum supported Rust version.
|
||||||
|
// <https://github.com/rust-lang/rust/issues/48919>
|
||||||
|
odds::vec::VecExt::retain_mut(&mut s.on_live_segment, |cb| cb(l.clone()));
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user