Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To clarify, they aren't disabling the lints in the section you've highlighted. `deny` makes a lint a failure instead of a warning. This is similar to `-Werror` in C. `allow` is the directive to disable a lint. Eg, I often start new or disposable projects with `#![allow(unused, dead_code)]` just to keep my IDE clean while the code is in an unpolished state.


You are correct! I misread it entirely, that's on me. I misread #![deny] as #![allow].




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: