From 2df623c09a6b811effe6f9cc644e82a13eed2a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 8 Oct 2018 09:09:14 +0300 Subject: [PATCH] Remove unnecessary mut --- gstreamer-pbutils/src/encoding_profile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer-pbutils/src/encoding_profile.rs b/gstreamer-pbutils/src/encoding_profile.rs index c88289d8e..b60e2ea86 100644 --- a/gstreamer-pbutils/src/encoding_profile.rs +++ b/gstreamer-pbutils/src/encoding_profile.rs @@ -467,7 +467,7 @@ impl<'a> EncodingContainerProfileBuilder<'a> { Ok(container_profile) } - pub fn add_profile>(mut self, profile: &P) -> Self { + pub fn add_profile>(self, profile: &P) -> Self { self.helper_profile.add_profile(profile).unwrap(); self }