mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 18:44:12 +02:00
clippy fixes
This commit is contained in:
parent
44c560713a
commit
a561cbaf64
12 changed files with 345 additions and 398 deletions
|
|
@ -1185,7 +1185,7 @@ impl<'de> Deserialize<'de> for SendPropIdentifier {
|
|||
Ok(match raw {
|
||||
Options::Num(num) => SendPropIdentifier(num),
|
||||
Options::Str(s) => {
|
||||
let num: u64 = s.parse().map_err(|e| D::Error::custom(e))?;
|
||||
let num: u64 = s.parse().map_err(D::Error::custom)?;
|
||||
SendPropIdentifier(num)
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue