error: `input.r#type.as_str()` is a string value used as an enum-like discriminator, consider creating an enum instead
╭▸ examples/internal/forbid_inline_mod.rs:10:9
│
10 │ ┏ match input.r#type.as_str() {
11 │ ┃ "a" => println!("a"),
12 │ ┃ "b" => println!("b"),
13 │ ┃ _ => panic!("Unknown type: {}", input.r#type),
14 │ ┃ }
│ ┗━━━━━━━━━┛ 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: the lint level is defined here
╭▸ examples/internal/forbid_inline_mod.rs:3:5
│
3 │ //! forbid(slippy::string_used_as_enum)
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━