2021-01-30 17:06:34 +00:00
|
|
|
#![warn(clippy::upper_case_acronyms)]
|
|
|
|
|
2021-02-25 10:25:22 +00:00
|
|
|
struct HTTPResponse; // not linted by default, but with cfg option
|
2021-01-30 17:06:34 +00:00
|
|
|
|
|
|
|
struct CString; // not linted
|
|
|
|
|
|
|
|
enum Flags {
|
2021-02-25 10:25:22 +00:00
|
|
|
NS, // not linted
|
2021-01-30 17:06:34 +00:00
|
|
|
CWR,
|
|
|
|
ECE,
|
|
|
|
URG,
|
|
|
|
ACK,
|
|
|
|
PSH,
|
|
|
|
RST,
|
|
|
|
SYN,
|
|
|
|
FIN,
|
|
|
|
}
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
// linted with cfg option, beware that lint suggests `GccllvmSomething` instead of
|
|
|
|
// `GccLlvmSomething`
|
|
|
|
struct GCCLLVMSomething;
|
2021-01-30 17:06:34 +00:00
|
|
|
|
2021-03-25 18:29:11 +00:00
|
|
|
// public items must not be linted
|
|
|
|
pub struct NOWARNINGHERE;
|
|
|
|
pub struct ALSONoWarningHERE;
|
|
|
|
|
2021-04-08 15:50:13 +00:00
|
|
|
// enum variants should not be linted if the num is pub
|
|
|
|
pub enum ParseError<T> {
|
|
|
|
YDB(u8),
|
|
|
|
Utf8(std::string::FromUtf8Error),
|
|
|
|
Parse(T, String),
|
|
|
|
}
|
|
|
|
|
|
|
|
// private, do lint here
|
|
|
|
enum ParseErrorPrivate<T> {
|
|
|
|
WASD(u8),
|
|
|
|
Utf8(std::string::FromUtf8Error),
|
|
|
|
Parse(T, String),
|
|
|
|
}
|
|
|
|
|
2021-01-30 17:06:34 +00:00
|
|
|
fn main() {}
|