FIX: Lint issues

This commit is contained in:
Nicolás Hatcher
2025-07-26 11:29:20 +02:00
committed by Nicolás Hatcher Andrés
parent b157347e68
commit b9b3cb1628
2 changed files with 5 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ fn set_the_range_does_not_set_the_cell() {
assert_eq!( assert_eq!(
model.set_selected_range(5, 4, 10, 6), model.set_selected_range(5, 4, 10, 6),
Err( Err(
"The selected cells is not in one of the corners. Row: '1' and row range '(5, 10)'" "The selected cell is not in one of the corners. Row: '1' and row range '(5, 10)'"
.to_string() .to_string()
) )
); );

View File

@@ -163,7 +163,7 @@ impl UserModel {
)); ));
} }
} else { } else {
// The selected cells must be on one of the corners of the selected range: // The selected cell must be on one of the corners of the selected range:
if selected_row != start_row && selected_row != end_row { if selected_row != start_row && selected_row != end_row {
return Err(format!( return Err(format!(
"The selected cell is not in one of the corners. Row: '{selected_row}' and row range '({start_row}, {end_row})'" "The selected cell is not in one of the corners. Row: '{selected_row}' and row range '({start_row}, {end_row})'"
@@ -214,7 +214,9 @@ impl UserModel {
// full column selected, nothing to do // full column selected, nothing to do
return Ok(()); return Ok(());
} }
if ["ArrowRight", "ArrowLeft"].contains(&key) && column_start == 1 && column_end == LAST_COLUMN if ["ArrowRight", "ArrowLeft"].contains(&key)
&& column_start == 1
&& column_end == LAST_COLUMN
{ {
// full row selected, nothing to do // full row selected, nothing to do
return Ok(()); return Ok(());