Skip to content

Commit

Permalink
Ensure module attributes are applied to all top-level modules.
Browse files Browse the repository at this point in the history
Effectively revert bytecodealliance#1089, and go back to putting `#[allow(dead_code)]`
on all modules for now, because the code in bytecodealliance#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 committed Nov 20, 2024
1 parent 1739caf commit d692762
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 d692762

Please sign in to comment.