Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

chore: remove redundant mut

Piotr Osiewiczc6425b36dadf
diff --git a/crates/search/src/search_bar.rs b/crates/search/src/search_bar.rs
index afc0d109d62..8bc444ed671 100644
--- a/crates/search/src/search_bar.rs
+++ b/crates/search/src/search_bar.rs
@@ -63,7 +63,7 @@ pub(super) fn render_nav_button<V: View>(
enum NavButton {}
MouseEventHandler::<NavButton, _>::new(direction as usize, cx, |state, cx| {
let theme = theme::current(cx);
- let mut style = theme.search.nav_button.style_for(state).clone();
+ let style = theme.search.nav_button.style_for(state).clone();
let mut container_style = style.container.clone();
let label = Label::new(icon, style.label.clone()).contained();
match direction {