Fix unneeded clone from PR #1917

This commit is contained in:
David Tolnay committed 2021-01-23 12:40:00 -08:00
1 parent 60e08f9545
commit 34f4b68f77
1 file changed
+1 -2
+1 -2
View File
@@ -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! {