Replace try! macro with question mark

This commit is contained in:
Constantin Nickel 2021-01-29 16:39:21 +01:00
parent 3467172c31
commit 118c980d88

View File

@ -1485,8 +1485,7 @@ pub mod serde {
where where
D: de::Deserializer<'de>, D: de::Deserializer<'de>,
{ {
#[allow(deprecated)] Ok(d.deserialize_i64(MicroSecondsTimestampVisitor)?)
Ok(try!(d.deserialize_i64(MicroSecondsTimestampVisitor)))
} }
struct MicroSecondsTimestampVisitor; struct MicroSecondsTimestampVisitor;