clippy: remove some newly-detected unnecessary returns
This commit is contained in:
parent
053a633b27
commit
c2674caf4c
|
@ -276,7 +276,7 @@ pub mod hex_bytes {
|
||||||
if let Ok(hex) = core::str::from_utf8(v) {
|
if let Ok(hex) = core::str::from_utf8(v) {
|
||||||
FromHex::from_hex(hex).map_err(E::custom)
|
FromHex::from_hex(hex).map_err(E::custom)
|
||||||
} else {
|
} else {
|
||||||
return Err(E::invalid_value(serde::de::Unexpected::Bytes(v), &self));
|
Err(E::invalid_value(serde::de::Unexpected::Bytes(v), &self))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ pub mod serde_details {
|
||||||
if let Ok(hex) = str::from_utf8(v) {
|
if let Ok(hex) = str::from_utf8(v) {
|
||||||
hex.parse::<Self::Value>().map_err(E::custom)
|
hex.parse::<Self::Value>().map_err(E::custom)
|
||||||
} else {
|
} else {
|
||||||
return Err(E::invalid_value(de::Unexpected::Bytes(v), &self));
|
Err(E::invalid_value(de::Unexpected::Bytes(v), &self))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue