From 2ebd401de6357e276ed5b18b1d0ad3c750a99d6f 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 ca8876f3a..963ca9e0f 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,