Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
oidos
Commits
c65cbef4
Commit
c65cbef4
authored
Dec 22, 2017
by
Aske Simon Christensen
Browse files
Unnecessary mut
parent
97a14a63
Changes
1
Hide whitespace changes
Inline
Side-by-side
synth/src/synth.rs
View file @
c65cbef4
...
@@ -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
();
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment