Closed
Description
Hello!
I noticed the following behaviour: if I insert a line break into my const
definition, the highlighting and "underlining" behaviour of the "unused" warning changes. It confused me for the first moment, since I thought I spelled const
wrong.
warning: constant item is never used: `IND_TOP_RIGHT`, #[warn(dead_code)] on by default
--> src/lib.rs:191:1
|
191 | const IND_TOP_RIGHT: usize =
| ^
vs.
warning: constant item is never used: `IND_TOP_RIGHT`, #[warn(dead_code)] on by default
--> src/lib.rs:191:1
|
191 | const IND_TOP_RIGHT: usize = 5;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Wouldn't it be better if only the constants name was highlighted anyway?
Metadata
Metadata
Assignees
Labels
No labels