#![allow(dead_code)]
//! deny(slippy::string_used_as_enum)
struct Input {
r#type: String,
value: String,
}
pub fn do_something(input: Input) {
match input.r#type.as_str() {
"test" => println!("First value"),
"test2" => println!("Second value"),
_ => {},
}
}
fn main() {
let _ = Input {
r#type: "test".into(),
value: "val".into(),
};
}