Skip to content

Commit

Permalink
Remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Jan 14, 2024
1 parent c096c91 commit 241a9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neothesia-core/src/render/keyboard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl KeyboardRenderer {
}

pub fn set_layout(&mut self, layout: piano_math::KeyboardLayout) {
self.layout = layout.clone();
self.layout = layout;
self.invalidate_cache();
}

Expand Down

0 comments on commit 241a9c6

Please sign in to comment.