diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-01-25 11:23:46 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-01-25 11:31:19 +0300 |
commit | 3b4c48d9f55ae5bfb6eb4fe485edf54f8916d955 (patch) | |
tree | 69f065a49d4035b924d0c1f7025186d597a55590 /mux | |
parent | ad3f1cf534b475d47d4ef4d0e8916d507c6e56e5 (diff) |
Fix various new clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1062>
Diffstat (limited to 'mux')
-rw-r--r-- | mux/fmp4/examples/dash_vod.rs | 3 | ||||
-rw-r--r-- | mux/mp4/tests/tests.rs | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/mux/fmp4/examples/dash_vod.rs b/mux/fmp4/examples/dash_vod.rs index 5dbcea81..8900fcbf 100644 --- a/mux/fmp4/examples/dash_vod.rs +++ b/mux/fmp4/examples/dash_vod.rs @@ -222,8 +222,7 @@ fn main() -> Result<(), Error> { </AdaptationSet> </Period> </MPD> -"###, - duration = duration, segment_timeline = segment_timeline); +"###); std::fs::write(path, manifest).expect("failed to write manifest"); }) diff --git a/mux/mp4/tests/tests.rs b/mux/mp4/tests/tests.rs index d1560b76..b4d480f4 100644 --- a/mux/mp4/tests/tests.rs +++ b/mux/mp4/tests/tests.rs @@ -107,8 +107,7 @@ fn test_basic() { .field("mpegversion", 4i32) .build() ), - "Unexpected audio caps {:?}", - caps + "Unexpected audio caps {caps:?}" ); let video_streams = info.video_streams(); @@ -122,7 +121,6 @@ fn test_basic() { let caps = video_stream.caps().unwrap(); assert!( caps.can_intersect(&gst::Caps::builder("video/x-h264").any_features().build()), - "Unexpected video caps {:?}", - caps + "Unexpected video caps {caps:?}" ); } |