warning unused
What it means#
An import, a local variable or a dependency in [deps] is never used (§2.2, part III.4). Besides the noise, an unused dep pulls code into the build for no reason. This is a warning by default, configurable in [lint].
Example#
use std.time { Duration } // <- unused
fn main() {
print("hi")
}error
unused
How to fix#
fn main() {
print("hi")
}Delete the declaration, or use it. Names that are intentionally unused may be started with _.