Skip to content

Commit

Permalink
satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
igaray committed Jan 13, 2025
1 parent 9b5231c commit 6126cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ocd/mrn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ fn apply_interactive_reorder(filename: &str) -> String {

// read user input & process into a series of indices
let input = crate::ocd::user_input();
let input = input.split(' ').map(|e| str::parse::<usize>(e));
let input = input.split(' ').map(str::parse::<usize>);

// all the integers must be parseable and also valid indexes into fields.
if input
Expand All @@ -601,7 +601,7 @@ fn apply_interactive_reorder(filename: &str) -> String {
let mut result = String::new();
for i in input.iter().take(input.len() - 1) {
result.push_str(fields[i - 1]);
result.push_str(" ");
result.push(' ');
}
result.push_str(fields[*input.last().unwrap() - 1]);

Expand Down

0 comments on commit 6126cc8

Please sign in to comment.