Skip to content

Commit

Permalink
remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Apr 5, 2024
1 parent 2d8e67a commit bd4e993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl Args {
let index = if let Some(flag_index) = self.flag_index {
if flag_index < 0 {
let index = (util::count_rows(&self.rconfig()).unwrap() as usize)
.abs_diff(flag_index.unsigned_abs() as usize);
.abs_diff(flag_index.unsigned_abs());
Some(index)
} else {
Some(flag_index as usize)
Expand Down

0 comments on commit bd4e993

Please sign in to comment.