From d85be4fe03964c537afcf4160cc5d147416fda34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 9 Oct 2017 16:37:40 +0300 Subject: [PATCH] Don't make variable mutable if not needed --- gstreamer/src/caps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/caps.rs b/gstreamer/src/caps.rs index aca3defde..b5b4724f6 100644 --- a/gstreamer/src/caps.rs +++ b/gstreamer/src/caps.rs @@ -40,7 +40,7 @@ impl GstRc { pub fn new_simple(name: &str, values: &[(&str, &ToValue)]) -> Self { assert_initialized_main_thread!(); - let mut caps = Caps::new_empty(); + let caps = Caps::new_empty(); let structure = Structure::new(name, values); caps.get_mut().unwrap().append_structure(structure);