Use receiver name that resembles the Rust input more closely
diff --git a/macro/src/expand.rs b/macro/src/expand.rs
index 2d3166a..ac39e4e 100644
--- a/macro/src/expand.rs
+++ b/macro/src/expand.rs
@@ -399,8 +399,8 @@
let receiver = sig.receiver.iter().map(|base| {
let ident = &base.ident;
match base.mutability {
- None => quote!(__receiver: &#ident),
- Some(_) => quote!(__receiver: &mut #ident),
+ None => quote!(__self: &#ident),
+ Some(_) => quote!(__self: &mut #ident),
}
});
let args = sig.args.iter().map(|arg| {
@@ -436,7 +436,7 @@
let mut call = match invoke {
Some(ident) => match sig.receiver {
None => quote!(super::#ident),
- Some(_) => quote!(__receiver.#ident),
+ Some(_) => quote!(__self.#ident),
},
None => quote!(__extern),
};