From 45e16f7753e4a815a42b13a6932fb6ee48e40bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 8 May 2022 11:41:54 +0300 Subject: [PATCH] gstreamer: Add `#[must_use]` annotation to `PadTemplateBuilder` --- gstreamer/src/pad_template.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gstreamer/src/pad_template.rs b/gstreamer/src/pad_template.rs index d6c74cc3a..d86828119 100644 --- a/gstreamer/src/pad_template.rs +++ b/gstreamer/src/pad_template.rs @@ -101,6 +101,7 @@ impl PadTemplate { } } +#[must_use = "The builder must be built to be used"] #[derive(Debug)] pub struct PadTemplateBuilder<'a> { name_template: &'a str,