super edge case
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user