mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
fix the clippy warning
This commit is contained in:
parent
d033db3573
commit
264d29a169
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue