W0021: unused binding
Generated from rellum-diagnostics/src/db.rs.
Explanation
A local binding was computed but never referenced by any later expression in the block. This usually means the value is dead code or the intended name was misspelled.
Common causes
- leaving behind a temporary while refactoring
- typing a different name at the use site
- creating a value for debugging and then not using it
Canonical fixes
- remove the binding, use it, or prefix it with
_if it is intentionally unused
Before:
value = expensive_call()
After:
_value = expensive_call()
Code example
value = expensive_call()