1 #![deny(clippy::match_same_arms)]
3 /// Test for https://github.com/rust-lang/rust-clippy/issues/2427
5 const PRICE_OF_SWEETS: u32 = 5;
6 const PRICE_OF_KINDNESS: u32 = 0;
7 const PRICE_OF_DRINKS: u32 = 5;
9 pub fn price(thing: &str) -> u32 {
11 "rolo" => PRICE_OF_SWEETS,
12 "advice" => PRICE_OF_KINDNESS,
13 "juice" => PRICE_OF_DRINKS,