1 #![deny(match_same_arms)]
3 const PRICE_OF_SWEETS: u32 = 5;
4 const PRICE_OF_KINDNESS: u32 = 0;
5 const PRICE_OF_DRINKS: u32 = 5;
7 pub fn price(thing: &str) -> u32 {
9 "rolo" => PRICE_OF_SWEETS,
10 "advice" => PRICE_OF_KINDNESS,
11 "juice" => PRICE_OF_DRINKS,