From ce92502d6125a36bb4c7d20d86100aa0002dbb69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 16 Sep 2024 11:24:54 +0300 Subject: [PATCH] video: Add `#[must_use]` attribute to `VideoTimeCode::add_interval()` It doesn't change the original value but returns the new result. Part-of: --- gstreamer-video/src/video_time_code.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gstreamer-video/src/video_time_code.rs b/gstreamer-video/src/video_time_code.rs index bfd0fafe1..51ed3d49a 100644 --- a/gstreamer-video/src/video_time_code.rs +++ b/gstreamer-video/src/video_time_code.rs @@ -239,6 +239,7 @@ impl ValidVideoTimeCode { } #[doc(alias = "gst_video_time_code_add_interval")] + #[must_use = "this returns the result of the operation, without modifying the original"] pub fn add_interval( &self, tc_inter: &VideoTimeCodeInterval,