forked from mirrors/gstreamer-rs
Don't make variable mutable if not needed
This commit is contained in:
parent
38b58cbf9d
commit
d85be4fe03
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue