Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-01-25 11:23:46 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-01-25 11:31:19 +0300
commit3b4c48d9f55ae5bfb6eb4fe485edf54f8916d955 (patch)
tree69f065a49d4035b924d0c1f7025186d597a55590 /utils/togglerecord/examples
parentad3f1cf534b475d47d4ef4d0e8916d507c6e56e5 (diff)
Fix various new clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1062>
Diffstat (limited to 'utils/togglerecord/examples')
-rw-r--r--utils/togglerecord/examples/gtk_recording.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs
index ab5d441a..ff3af6ae 100644
--- a/utils/togglerecord/examples/gtk_recording.rs
+++ b/utils/togglerecord/examples/gtk_recording.rs
@@ -232,14 +232,14 @@ fn create_ui(app: &gtk::Application) {
let position = video_sink
.query_position::<gst::ClockTime>()
.unwrap_or(gst::ClockTime::ZERO);
- position_label.set_text(&format!("Position: {:.1}", position));
+ position_label.set_text(&format!("Position: {position:.1}"));
let recording_duration = togglerecord
.static_pad("src")
.unwrap()
.query_position::<gst::ClockTime>()
.unwrap_or(gst::ClockTime::ZERO);
- recorded_duration_label.set_text(&format!("Recorded: {:.1}", recording_duration));
+ recorded_duration_label.set_text(&format!("Recorded: {recording_duration:.1}"));
glib::Continue(true)
});