mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-22 06:45:37 +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(|_| {
|
left.parse::<u8>().map(|res| (res, (*right).to_string())).map_err(
|
||||||
|
|_| {
|
||||||
ParseError::Custom(
|
ParseError::Custom(
|
||||||
"First argument must be a integer!".to_owned().into(),
|
"First argument must be a integer!".to_owned().into(),
|
||||||
)
|
)
|
||||||
})
|
},
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[command(rename = "lowercase")]
|
#[command(rename = "lowercase")]
|
||||||
|
|
Loading…
Add table
Reference in a new issue