From 89e2b36e29e14785985528a792055ed60277066f Mon Sep 17 00:00:00 2001 From: Mingun Date: Mon, 3 Oct 2022 22:37:32 +0500 Subject: [PATCH] Run `cargo fmt` --- serde_derive/src/de.rs | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/serde_derive/src/de.rs b/serde_derive/src/de.rs index e0b5cc6d8..c9c93e19d 100644 --- a/serde_derive/src/de.rs +++ b/serde_derive/src/de.rs @@ -1439,22 +1439,21 @@ fn deserialize_internally_tagged_enum( _ => None, } }); - let variant_arms = variants - .map(|(i, variant)| { - let variant_name = field_i(i); + let variant_arms = variants.map(|(i, variant)| { + let variant_name = field_i(i); - let block = Match(deserialize_internally_tagged_variant( - &format!("Variant{}", i), - params, - variant, - cattrs, - quote!(__deserializer), - )); + let block = Match(deserialize_internally_tagged_variant( + &format!("Variant{}", i), + params, + variant, + cattrs, + quote!(__deserializer), + )); - quote! { - #field_struct_name::#variant_name => #block - } - }); + quote! { + #field_struct_name::#variant_name => #block + } + }); let expecting = format!("internally tagged enum {}", params.type_name()); let expecting = cattrs.expecting().unwrap_or(&expecting);