Skip to content

Commit

Permalink
chore: pass clippy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaRevenco committed Dec 5, 2024
1 parent 142780d commit 9c8ae3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helix-term/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Args {
let mut line_number = 0;

let mut insert_file_with_position = |file_with_position: &str| {
let (filename, position) = parse_file(&file_with_position);
let (filename, position) = parse_file(file_with_position);

// Before setting the working directory, resolve all the paths in args.files
let filename = helix_stdx::path::canonicalize(filename);
Expand Down Expand Up @@ -107,10 +107,10 @@ impl Args {
arg if arg.starts_with('+') => {
match arg[1..].parse::<usize>() {
Ok(n) => line_number = n.saturating_sub(1),
_ => insert_file_with_position(&arg),
_ => insert_file_with_position(arg),
};
}
arg => insert_file_with_position(&arg),
arg => insert_file_with_position(arg),
}
}

Expand Down

0 comments on commit 9c8ae3b

Please sign in to comment.