rtic/macros/src/check.rs

13 lines
283 B
Rust
Raw Normal View History

use syntax::Statics;
use util::Ceilings;
2017-07-04 18:26:11 +02:00
pub fn resources(resources: &Statics, ceilings: &Ceilings) {
2017-07-04 18:26:11 +02:00
for resource in resources.keys() {
assert!(
ceilings.get(&resource).is_some(),
"resource {} is unused",
resource
);
2017-07-04 18:26:11 +02:00
}
}