fix the clippy warning

This commit is contained in:
Sylvestre Ledru 2023-07-04 18:45:11 +02:00 committed by GitHub
parent d033db3573
commit 264d29a169
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {