Remove useless questionmark + Ok

Thanks, clippy!
This commit is contained in:
Jonas Platte 2021-01-19 11:46:40 +01:00
parent 275294f44e
commit 2705b27df1
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -174,7 +174,7 @@ impl<'de> Deserialize<'de> for CanonicalJsonValue {
D: Deserializer<'de>,
{
let val = JsonValue::deserialize(deserializer)?;
Ok(val.try_into().map_err(serde::de::Error::custom)?)
val.try_into().map_err(serde::de::Error::custom)
}
}