warning: `role` is a string value used as an enum-like discriminator, consider creating an enum instead
╭▸ examples/lints/string_used_as_enum/if_else.rs:12:5
│
12 │ ┏ if role == "system" {
13 │ ┃ println!("Hello System");
14 │ ┃ return true;
15 │ ┃ } else if role == "admin" {
‡ ┃
22 │ ┃ panic!("Invalid role")
23 │ ┃ }
│ ┗━━━━━┛ string is used as an enum discriminator here
│
╰ help: for further information visit https://sliman4.github.io/slippy/index.html#string_used_as_enum
note: `warn(slippy::string_used_as_enum)` on by default