I would do: option.unwrap_or_else(|_| panic!("ah: {}", "nuts")). Formatting a string is somewhat costly. This will avoid formatting the string unless it is ...
確定! 回上一頁