Skip to content

Commit 8514300

Browse files
clippy
1 parent f3413ed commit 8514300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/gen-host/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl Host {
311311
}
312312

313313
fn print_router_fn_definition(&self, mod_name: &str, func: &Function) -> TokenStream {
314-
let func_name = func.ident.to_snake_case();
314+
let func_name = func.id.to_snake_case();
315315
let func_ident = format_ident!("{}", func_name);
316316

317317
let param_decl = match func.params.len() {
@@ -378,7 +378,7 @@ impl Host {
378378
resource_name: &str,
379379
method: &Function,
380380
) -> TokenStream {
381-
let func_name = method.ident.to_snake_case();
381+
let func_name = method.id.to_snake_case();
382382
let func_ident = format_ident!("{}", func_name);
383383

384384
let param_decl = method

0 commit comments

Comments
 (0)