warning: `message.role.as_str()` is a string value used as an enum-like discriminator, consider creating an enum instead
╭▸ examples/lints/string_used_as_enum/basic.rs:18:5
│
18 │ ┏ match message.role.as_str() {
19 │ ┃ "system" => {
20 │ ┃ format!("System message: {}", message.message)
‡ ┃
28 │ ┃ _ => panic!("Unexpected unknown role. Must be one of: system, user, assistant"),
29 │ ┃ }
│ ┗━━━━━┛ 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