Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Dec 17, 2024
1 parent 5c3aad2 commit 79f15ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/editor/src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3030,6 +3030,7 @@ impl EditorElement {
}
}

#[allow(clippy::too_many_arguments)]
fn layout_context_menu_aside(
&self,
text_hitbox: &Hitbox,
Expand Down Expand Up @@ -3060,7 +3061,7 @@ impl EditorElement {

let fit_horizontally_within = |available: Edges<Pixels>, wanted: Size<Pixels>| {
// Prefer to fit to the right, then on the same side of the line as the menu, then on
// the other side of hte line.
// the other side of the line.
if wanted.width < available.right {
Some(right_position)
} else if !y_is_flipped && wanted.height < available.bottom {
Expand Down

0 comments on commit 79f15ef

Please sign in to comment.