Commit c65cbef4 authored by Aske Simon Christensen's avatar Aske Simon Christensen
Browse files

Unnecessary mut

parent 97a14a63
...@@ -324,7 +324,7 @@ impl<G: SoundGenerator, S: SynthInfo> SynthPlugin<G, S> { ...@@ -324,7 +324,7 @@ impl<G: SoundGenerator, S: SynthInfo> SynthPlugin<G, S> {
if new_sound_params != self.sound_params { if new_sound_params != self.sound_params {
let cache: &mut Vec<SoundCache<G>> = &mut self.cache.write().unwrap(); let cache: &mut Vec<SoundCache<G>> = &mut self.cache.write().unwrap();
self.sound_params = new_sound_params; self.sound_params = new_sound_params;
for mut c in cache { for c in cache {
c.invalidate(); c.invalidate();
} }
} }
......
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