mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-30 13:42:54 -05:00
cargo fmt
This commit is contained in:
@@ -314,10 +314,7 @@ impl SampleFileDir {
|
||||
fn open_self(path: &str, create: bool) -> Result<Arc<SampleFileDir>, Error> {
|
||||
let fd = Arc::new(Fd::open(path, create)?);
|
||||
let reader = reader::Reader::spawn(path, fd.clone());
|
||||
Ok(Arc::new(SampleFileDir {
|
||||
fd,
|
||||
reader,
|
||||
}))
|
||||
Ok(Arc::new(SampleFileDir { fd, reader }))
|
||||
}
|
||||
|
||||
/// Opens the given sample file for reading.
|
||||
|
||||
Reference in New Issue
Block a user