You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using built to get a few values, but even with the options tweaked to where I want them, I still get a lot of unused const warnings. (Especially when using Options{ env: true }...)
I'd appreciate it if there were an option to enable allow(unused_variables) without having to edit the file manually in build.rs.
I want to keep warnings enabled for my code, and most warnings for library code as well. But I'm well aware that I'm not using NUM_JOBS, I don't need to see that every time I build.
The text was updated successfully, but these errors were encountered:
However it still produced errors, and it blamed the errors on built.rs instead of build_info.rs. It turns out that allow(unused_variables) is the wrong attribute to use for const warnings, and instead using allow(dead_code) will silence them.
I'm using built to get a few values, but even with the options tweaked to where I want them, I still get a lot of unused const warnings. (Especially when using
Options{ env: true }
...)I'd appreciate it if there were an option to enable
allow(unused_variables)
without having to edit the file manually inbuild.rs
.I want to keep warnings enabled for my code, and most warnings for library code as well. But I'm well aware that I'm not using
NUM_JOBS
, I don't need to see that every time I build.The text was updated successfully, but these errors were encountered: