Skip to content

Commit

Permalink
Fix mutable_borrow_reservation_conflict warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd committed Dec 5, 2020
1 parent 6b06986 commit 96d6a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webchordr/src/components/song_view/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Component for SongView {
}

fn update(&mut self, msg: Self::Message) -> ShouldRender {
let song_settings = &self.props.song_settings;
let song_settings = self.props.song_settings.clone();

match msg {
Msg::TransposeUp => self.change_transpose(song_settings.transpose_semitone() + 1),
Expand Down

0 comments on commit 96d6a44

Please sign in to comment.