Fix one Clippy's warning

This commit is contained in:
Temirkhan Myrzamadi 2020-07-16 21:42:07 +06:00
parent e996ffffb4
commit f90da598c5

View file

@ -135,11 +135,13 @@ fn parse_custom_parser() {
))
}
};
left.parse::<u8>().map(|res| (res, right.to_string())).map_err(|_| {
left.parse::<u8>().map(|res| (res, (*right).to_string())).map_err(
|_| {
ParseError::Custom(
"First argument must be a integer!".to_owned().into(),
)
})
},
)
}
#[command(rename = "lowercase")]