We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3413ed commit 8514300Copy full SHA for 8514300
crates/gen-host/src/lib.rs
@@ -311,7 +311,7 @@ impl Host {
311
}
312
313
fn print_router_fn_definition(&self, mod_name: &str, func: &Function) -> TokenStream {
314
- let func_name = func.ident.to_snake_case();
+ let func_name = func.id.to_snake_case();
315
let func_ident = format_ident!("{}", func_name);
316
317
let param_decl = match func.params.len() {
@@ -378,7 +378,7 @@ impl Host {
378
resource_name: &str,
379
method: &Function,
380
) -> TokenStream {
381
- let func_name = method.ident.to_snake_case();
+ let func_name = method.id.to_snake_case();
382
383
384
let param_decl = method
0 commit comments