Skip to content

Commit

Permalink
Remove needless clone in simple example
Browse files Browse the repository at this point in the history
  • Loading branch information
zeozeozeo committed Nov 30, 2023
1 parent d4f7e91 commit 7d62eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() {
mixer.init(); // use init_ex to specify settings

// play the sound
mixer.play(sound.clone());
mixer.play(sound);

// wait for all sounds to finish (use mixer.is_finished() to check for that)
mixer.wait();
Expand Down

0 comments on commit 7d62eb6

Please sign in to comment.