Skip to content

Commit d92b53b

Browse files
authored
Ensure module attributes are applied to all top-level modules. (#1091)
Effectively revert #1089, and go back to putting `#[allow(dead_code)]` on all modules for now, because the code in #1089 didn't work for interfaces defined inline inside of worlds, which turn into top-level modules in the Rust bindings.
1 parent 563956d commit d92b53b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/rust/src/interface.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ macro_rules! {macro_name} {{
445445
let module = format!(
446446
"\
447447
{docs}
448+
#[allow(dead_code, clippy::all)]
448449
pub mod {snake} {{
449450
{used_static}
450451
{module}

0 commit comments

Comments
 (0)