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/1529>
This commit is contained in:
Sebastian Dröge 2024-09-16 11:24:54 +03:00
parent bd37999166
commit ce92502d61

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,