Skip to content

Commit

Permalink
chore: fix single_match lints
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed Apr 5, 2024
1 parent 947d84e commit 18c10c8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions prost-types/src/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@ impl Any {
{
let expected_type_url = M::type_url();

match (
if let (Some(expected), Some(actual)) = (
TypeUrl::new(&expected_type_url),
TypeUrl::new(&self.type_url),
) {
(Some(expected), Some(actual)) => {
if expected == actual {
return Ok(M::decode(self.value.as_slice())?);
}
if expected == actual {
return M::decode(self.value.as_slice());
}
_ => (),
}

let mut err = DecodeError::new(format!(
Expand Down

0 comments on commit 18c10c8

Please sign in to comment.