more clippy fixes
This commit is contained in:
@@ -166,7 +166,6 @@ fn render_active_line_with_indicator<T: CanvasTheme>(
|
||||
if let Some(comp) = completion {
|
||||
if !comp.is_empty() && remaining_cols > 0 {
|
||||
visible_completion = slice_by_display_cols(comp, 0, remaining_cols);
|
||||
remaining_cols = remaining_cols.saturating_sub(display_width(&visible_completion));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -149,9 +149,6 @@ fn calculate_dropdown_position(
|
||||
if dropdown_area.right() > frame_area.width {
|
||||
dropdown_area.x = frame_area.width.saturating_sub(dropdown_width);
|
||||
}
|
||||
dropdown_area.x = dropdown_area.x;
|
||||
dropdown_area.y = dropdown_area.y;
|
||||
|
||||
dropdown_area
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user