Skip to content

Commit 6f2b1b1

Browse files
committed
Disable unused-import warnings on __with_name* aliases.
These don't always get used, so disable unused-import warnings for them.
1 parent 1ee3108 commit 6f2b1b1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/rust/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ impl RustWasm {
398398
TypeGeneration::Remap(remapped_path) => {
399399
let name = format!("__with_name{}", self.with_name_counter);
400400
self.with_name_counter += 1;
401+
uwriteln!(self.src, "#[allow(unused_imports)]");
401402
uwriteln!(self.src, "use {remapped_path} as {name};");
402403
InterfaceName {
403404
remapped: true,

0 commit comments

Comments
 (0)