From 34f4b68f7714b12551a472a86bc0568c7c5b3388 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 23 Jan 2021 12:30:19 -0800 Subject: [PATCH] Fix unneeded clone from PR #1917 --- serde_derive/src/de.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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! {