Skip to content

Commit

Permalink
fix the clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre authored Jul 4, 2023
1 parent d033db3 commit 264d29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/split/src/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ impl Strategy {
error: fn(ParseSizeError) -> StrategyError,
) -> Result<Strategy, StrategyError> {
let s = matches.get_one::<String>(option).unwrap();
let n = parse_size(&s).map_err(error)?;
let n = parse_size(s).map_err(error)?;
if n > 0 {
Ok(strategy(n))
} else {
Expand Down

0 comments on commit 264d29a

Please sign in to comment.