Don't make variable mutable if not needed

This commit is contained in:
Sebastian Dröge 2017-10-09 16:37:40 +03:00
parent 38b58cbf9d
commit d85be4fe03

View file

@ -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);