super edge case

This commit is contained in:
2026-06-07 03:38:10 +02:00
parent fa4a7ee4c7
commit 206b2fa414
+1 -1
View File
@@ -17,7 +17,7 @@ impl GetRust for ExprPath {
let mut a = self.clone(); let mut a = self.clone();
if let Some(path) = &cx.expr_super { if let Some(path) = &cx.expr_super {
if self.0[0].ident.0 == "super" { if self.0[0].ident.0 == "super" && self.0.len() == 1 {
a.0[0].ident.0 = String::from("self._super"); a.0[0].ident.0 = String::from("self._super");
} else if self.0[0].ident.0 == "Super" { } else if self.0[0].ident.0 == "Super" {
a.0[0].ident = path.0[0].clone(); a.0[0].ident = path.0[0].clone();