Skip to content

Commit d013f20

Browse files
committed
Fix rustfmt
1 parent 54aa1e5 commit d013f20

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mp4parse/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ mod fallible {
302302
}
303303

304304
pub fn resize_with<F>(&mut self, new_len: usize, f: F) -> Result<(), ()>
305-
where F: FnMut() -> T
305+
where
306+
F: FnMut() -> T,
306307
{
307308
self.reserve(new_len)?;
308309
self.inner.resize_with(new_len, f);
@@ -1484,7 +1485,8 @@ pub fn read_avif<T: Read>(f: &mut T, context: &mut AvifContext) -> Result<()> {
14841485
let primary_item_loc = read_avif_meta(&mut b)?;
14851486
match primary_item_loc.construction_method {
14861487
ConstructionMethod::File => {
1487-
primary_item_extents_data.resize_with(primary_item_loc.extents.len(), Default::default)?;
1488+
primary_item_extents_data
1489+
.resize_with(primary_item_loc.extents.len(), Default::default)?;
14881490
primary_item_extents = Some(primary_item_loc.extents);
14891491
}
14901492
_ => return Err(Error::Unsupported("unsupported construction_method")),

0 commit comments

Comments
 (0)