fix build
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
3f1f2bb896
commit
d5ccd9dbdd
@@ -212,8 +212,8 @@ impl Model {
|
||||
if column_count <= 0 {
|
||||
return Err("Please use insert columns instead".to_string());
|
||||
}
|
||||
if column < 1 || column > LAST_COLUMN {
|
||||
return Err(format!("Column number '{}' is not valid.", column));
|
||||
if !(1..=LAST_COLUMN).contains(&column) {
|
||||
return Err(format!("Column number '{column}' is not valid."));
|
||||
}
|
||||
if column + column_count - 1 > LAST_COLUMN {
|
||||
return Err("Cannot delete columns beyond the last column of the sheet".to_string());
|
||||
@@ -390,8 +390,8 @@ impl Model {
|
||||
if row_count <= 0 {
|
||||
return Err("Please use insert rows instead".to_string());
|
||||
}
|
||||
if row < 1 || row > LAST_ROW {
|
||||
return Err(format!("Row number '{}' is not valid.", row));
|
||||
if !(1..=LAST_ROW).contains(&row) {
|
||||
return Err(format!("Row number '{row}' is not valid."));
|
||||
}
|
||||
if row + row_count - 1 > LAST_ROW {
|
||||
return Err("Cannot delete rows beyond the last row of the sheet".to_string());
|
||||
|
||||
Reference in New Issue
Block a user