Skip to content

Commit

Permalink
Fix clippy and formatting
Browse files Browse the repository at this point in the history
Co-Authored-By: Danilo <danilo@zed.dev>
  • Loading branch information
agu-z and danilo-leal committed Dec 27, 2024
1 parent a7d336f commit 7d29b09
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions crates/editor/src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2944,6 +2944,7 @@ impl EditorElement {
}
}

#[allow(clippy::too_many_arguments)]
fn layout_sticky_buffer_header(
&self,
StickyHeaderExcerpt {
Expand Down Expand Up @@ -3921,11 +3922,7 @@ impl EditorElement {
}
}

fn paint_line_numbers(
&mut self,
layout: &mut EditorLayout,
cx: &mut WindowContext,
) {
fn paint_line_numbers(&mut self, layout: &mut EditorLayout, cx: &mut WindowContext) {
let is_singleton = self.editor.read(cx).is_singleton(cx);

let line_height = layout.position_map.line_height;
Expand Down Expand Up @@ -6770,9 +6767,7 @@ impl Element for EditorElement {
cx: &mut WindowContext,
) {
let focus_handle = self.editor.focus_handle(cx);
let key_context = self.editor.update(cx, |editor, cx| {
editor.key_context(cx)
});
let key_context = self.editor.update(cx, |editor, cx| editor.key_context(cx));

cx.set_key_context(key_context);
cx.handle_input(
Expand Down

0 comments on commit 7d29b09

Please sign in to comment.