Skip to content

Commit

Permalink
Ensure module attributes are applied to all top-level modules. (#1091)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sunfishcode authored Nov 20, 2024
1 parent 563956d commit d92b53b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/rust/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ macro_rules! {macro_name} {{
let module = format!(
"\
{docs}
#[allow(dead_code, clippy::all)]
pub mod {snake} {{
{used_static}
{module}
Expand Down

0 comments on commit d92b53b

Please sign in to comment.