You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note it was necessary to add a From<std::io::Error> for Status impl for this
Original clippy error:
warning: this block may be rewritten with the `?` operator
--> mp4parse_capi/src/lib.rs:1290:9
|
1290 | / if data_len
1291 | | .write_u32::<byteorder::NativeEndian>(content_len)
1292 | | .is_err()
1293 | | {
1294 | | return Err(Mp4parseStatus::Io);
1295 | | }
| |_________^
|
= note: `-D clippy::question-mark` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
help: replace it with
|
1290 ~ data_len
1291 + .write_u32::<byteorder::NativeEndian>(content_len)?;
|
0 commit comments