Fix a warning

This commit is contained in:
Alex Crichton
2019-05-28 07:03:42 -07:00
parent 2d22fa4f03
commit 39b5f1845d

View File

@ -88,13 +88,7 @@ macro_rules! methods {
fn check_used(self) -> Result<(), Diagnostic> {
// Account for the fact this method was called
ATTRS.with(|state| state.checks.set(state.checks.get() + 1));
let mut errors = Vec::new();
for (used, attr) in self.attrs.iter() {
if used.get() {
continue
}
}
Diagnostic::from_vec(errors)
Ok(())
}
};