1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-06-02 13:39:54 +00:00

fix fmt warnings.

This commit is contained in:
Alf 2023-01-05 19:00:49 -08:00
parent 46d046d847
commit 7ff4fa2063
2 changed files with 9 additions and 4 deletions

View file

@ -103,6 +103,14 @@ With print statement output.
cargo test -- --nocapture
```
#### Run Cargo fmt
Run fmt to catch formatting errors.
```
rustup component add rustfmt
cargo fmt --all -- --check
```
#### Run Clippy
Run Clippy tests to catch common lints and mistakes.

View file

@ -17,10 +17,7 @@ impl<R: Read + Seek> ReadBox<&mut R> for MetaBox {
let (version, _) = read_box_header_ext(reader)?;
if version != 0 {
return Err(Error::UnsupportedBoxVersion(
BoxType::UdtaBox,
version,
));
return Err(Error::UnsupportedBoxVersion(BoxType::UdtaBox, version));
}
let mut ilst = None;