Clippy clean

This commit is contained in:
Sunli 2020-11-23 12:50:35 +08:00
parent 997faa9c71
commit 3a5cc3aae2

View File

@ -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()),
}
}