diff --git a/neothesia-core/src/render/keyboard/mod.rs b/neothesia-core/src/render/keyboard/mod.rs index c1a3f7c5..161eb8ed 100644 --- a/neothesia-core/src/render/keyboard/mod.rs +++ b/neothesia-core/src/render/keyboard/mod.rs @@ -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(); }