Ingore clippy warnings about too many arguments

This commit is contained in:
Chris Glass 2026-04-10 18:40:26 +02:00
parent eca9421e87
commit b654808734
2 changed files with 33 additions and 26 deletions

View file

@ -264,6 +264,7 @@ pub struct Terminal {
impl Terminal {
//TODO: error handling
#[allow(clippy::too_many_arguments)]
pub fn new(
pane: pane_grid::Pane,
entity: segmented_button::Entity,
@ -860,10 +861,11 @@ impl Terminal {
// Change color if selected
if let Some(selection) = &term.selection
&& let Some(range) = selection.to_range(&term)
&& range.contains(indexed.point) {
//TODO: better handling of selection
mem::swap(&mut fg, &mut bg);
}
&& range.contains(indexed.point)
{
//TODO: better handling of selection
mem::swap(&mut fg, &mut bg);
}
// Convert foreground to linear
attrs = attrs.color(fg);
@ -877,9 +879,10 @@ impl Terminal {
let mut flags = indexed.cell.flags;
if let Some(active_match) = &self.active_regex_match
&& active_match.contains(&indexed.point) {
flags |= Flags::UNDERLINE;
}
&& active_match.contains(&indexed.point)
{
flags |= Flags::UNDERLINE;
}
if let Some(active_id) = &self.active_hyperlink_id {
let mut matches_active = indexed
.cell
@ -1191,9 +1194,9 @@ impl<'a, T> Iterator for HintPostProcessor<'a, T> {
&& let Some(rm) = self
.term
.regex_search_right(self.regex, self.start, self.end)
{
self.next_processed_match(rm);
}
{
self.next_processed_match(rm);
}
Some(next_match)
}