Skip to content

Commit

Permalink
Fix unneeded clone from PR #1917
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 23, 2021
1 parent 60e08f9 commit 34f4b68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions serde_derive/src/de.rs
Expand Up @@ -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! {
Expand Down

0 comments on commit 34f4b68

Please sign in to comment.