Don't print qualified self in node type names
This commit is contained in:
parent
2c1b9c620e
commit
f467025569
@ -726,9 +726,6 @@ fn pretty_type_name_type(ty: syn::Type) -> String {
|
||||
}
|
||||
|
||||
fn pretty_type_name_path(path: syn::TypePath) -> String {
|
||||
if path.qself.is_some() {
|
||||
format!("{}", path.into_token_stream())
|
||||
} else {
|
||||
let last_segment = path.path.segments.last().unwrap();
|
||||
match &last_segment.arguments {
|
||||
syn::PathArguments::None => {
|
||||
@ -755,4 +752,3 @@ fn pretty_type_name_path(path: syn::TypePath) -> String {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user