mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 02:53:20 +00:00
8af28840d2
upper_case_acronyms: don't warn on public items Fixes #6803 changelog: upper_case_acronyms: ignore public items
27 lines
484 B
Rust
27 lines
484 B
Rust
#![warn(clippy::upper_case_acronyms)]
|
|
|
|
struct HTTPResponse; // not linted by default, but with cfg option
|
|
|
|
struct CString; // not linted
|
|
|
|
enum Flags {
|
|
NS, // not linted
|
|
CWR,
|
|
ECE,
|
|
URG,
|
|
ACK,
|
|
PSH,
|
|
RST,
|
|
SYN,
|
|
FIN,
|
|
}
|
|
|
|
// linted with cfg option, beware that lint suggests `GccllvmSomething` instead of
|
|
// `GccLlvmSomething`
|
|
struct GCCLLVMSomething;
|
|
|
|
// public items must not be linted
|
|
pub struct NOWARNINGHERE;
|
|
pub struct ALSONoWarningHERE;
|
|
|
|
fn main() {}
|