diff --git a/serde_derive/src/de.rs b/serde_derive/src/de.rs index 8470da8d6..9e9c4022a 100644 --- a/serde_derive/src/de.rs +++ b/serde_derive/src/de.rs @@ -2121,8 +2121,7 @@ fn deserialize_identifier( (None, None, None, None) }; - let (fallthrough_arm, fallthrough_borrowed_arm) = if let Some(fallthrough) = fallthrough.clone() - { + let (fallthrough_arm, fallthrough_borrowed_arm) = if let Some(fallthrough) = fallthrough { fallthrough } else if is_variant { let fallthrough = quote! {