Commit d85be4fe authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Don't make variable mutable if not needed

parent 38b58cbf
......@@ -40,7 +40,7 @@ impl GstRc<CapsRef> {
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment