cargo fmt

This commit is contained in:
Scott Lamb
2021-06-04 20:25:19 -07:00
parent 23d77693de
commit bb69d1488e
3 changed files with 111 additions and 68 deletions

View File

@@ -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.