Fix codegen tests.
This commit is contained in:
parent
0b49865f29
commit
067983bb57
@ -411,6 +411,8 @@ impl Parse for ExportedFn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl ExportedFn {
|
impl ExportedFn {
|
||||||
|
#![allow(unused)]
|
||||||
|
|
||||||
pub fn params(&self) -> &ExportedFnParams {
|
pub fn params(&self) -> &ExportedFnParams {
|
||||||
&self.params
|
&self.params
|
||||||
}
|
}
|
||||||
@ -708,13 +710,6 @@ impl ExportedFn {
|
|||||||
|
|
||||||
pub fn generate_impl(&self, on_type_name: &str) -> proc_macro2::TokenStream {
|
pub fn generate_impl(&self, on_type_name: &str) -> proc_macro2::TokenStream {
|
||||||
let sig_name = self.name().clone();
|
let sig_name = self.name().clone();
|
||||||
let name = self
|
|
||||||
.params
|
|
||||||
.name
|
|
||||||
.last()
|
|
||||||
.cloned()
|
|
||||||
.unwrap_or_else(|| self.name().to_string());
|
|
||||||
|
|
||||||
let arg_count = self.arg_count();
|
let arg_count = self.arg_count();
|
||||||
let is_method_call = self.mutable_receiver();
|
let is_method_call = self.mutable_receiver();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user