FIX: Lint issues
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
b157347e68
commit
b9b3cb1628
@@ -55,7 +55,7 @@ fn set_the_range_does_not_set_the_cell() {
|
||||
assert_eq!(
|
||||
model.set_selected_range(5, 4, 10, 6),
|
||||
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()
|
||||
)
|
||||
);
|
||||
|
||||
@@ -163,7 +163,7 @@ impl UserModel {
|
||||
));
|
||||
}
|
||||
} 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 {
|
||||
return Err(format!(
|
||||
"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
|
||||
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
|
||||
return Ok(());
|
||||
|
||||
Reference in New Issue
Block a user