mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
Fix one Clippy's warning
This commit is contained in:
parent
e996ffffb4
commit
f90da598c5
1 changed files with 7 additions and 5 deletions
|
@ -135,11 +135,13 @@ fn parse_custom_parser() {
|
|||
))
|
||||
}
|
||||
};
|
||||
left.parse::<u8>().map(|res| (res, right.to_string())).map_err(|_| {
|
||||
ParseError::Custom(
|
||||
"First argument must be a integer!".to_owned().into(),
|
||||
)
|
||||
})
|
||||
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")]
|
||||
|
|
Loading…
Reference in a new issue