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:
parent
46d046d847
commit
7ff4fa2063
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue