mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +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,
|
error: fn(ParseSizeError) -> StrategyError,
|
||||||
) -> Result<Strategy, StrategyError> {
|
) -> Result<Strategy, StrategyError> {
|
||||||
let s = matches.get_one::<String>(option).unwrap();
|
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 {
|
if n > 0 {
|
||||||
Ok(strategy(n))
|
Ok(strategy(n))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue