video: Add #[must_use] attribute to VideoTimeCode::add_interval()

It doesn't change the original value but returns the new result.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1530>
This commit is contained in:
Sebastian Dröge 2024-09-16 11:24:54 +03:00 committed by Backport Bot
parent 314731b62c
commit 7dd435daa6

View file

@ -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,