From d0284857bed93108075571aa64c2f82bab9d75df Mon Sep 17 00:00:00 2001 From: Sunli Date: Mon, 23 Nov 2020 12:50:35 +0800 Subject: [PATCH] Clippy clean --- derive/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/derive/src/utils.rs b/derive/src/utils.rs index 841fb9ce..cf94f483 100644 --- a/derive/src/utils.rs +++ b/derive/src/utils.rs @@ -386,6 +386,6 @@ pub fn get_type_path_and_name(ty: &Type) -> GeneratorResult<(&TypePath, String)> .unwrap(), )), Type::Group(TypeGroup { elem, .. }) => get_type_path_and_name(&elem), - _ => return Err(Error::new_spanned(ty, "Invalid type").into()), + _ => Err(Error::new_spanned(ty, "Invalid type").into()), } }