mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-20 16:26:33 +00:00
Fix a warning
This commit is contained in:
@ -88,13 +88,7 @@ macro_rules! methods {
|
|||||||
fn check_used(self) -> Result<(), Diagnostic> {
|
fn check_used(self) -> Result<(), Diagnostic> {
|
||||||
// Account for the fact this method was called
|
// Account for the fact this method was called
|
||||||
ATTRS.with(|state| state.checks.set(state.checks.get() + 1));
|
ATTRS.with(|state| state.checks.set(state.checks.get() + 1));
|
||||||
let mut errors = Vec::new();
|
Ok(())
|
||||||
for (used, attr) in self.attrs.iter() {
|
|
||||||
if used.get() {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Diagnostic::from_vec(errors)
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user