fix referenced type

This commit is contained in:
Marc-Antoine Arnaud 2018-05-23 18:08:49 +02:00
parent 6e7b2dd708
commit adbc16eb12

View File

@ -62,7 +62,7 @@ fn get_vec_type(t: &syn::PathSegment) -> Option<syn::Ident> {
if let syn::PathArguments::AngleBracketed(ref args) = t.arguments {
if let Some(Pair::End(tt)) = args.args.first() {
if let syn::GenericArgument::Type(ref argument) = *tt {
if let Path(ref path2) = argument {
if let Path(ref path2) = *argument {
if let Some(Pair::End(ttt)) = path2.path.segments.first() {
return Some(ttt.ident);
}