Don't print qualified self in node type names

This commit is contained in:
Shadowfacts 2025-01-01 17:04:42 -05:00
parent 2c1b9c620e
commit f467025569

View File

@ -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 {
}
}
}
}