2 Checks for calls to `.expect(&format!(...))`, `.expect(foo(..))`,
3 etc., and suggests to use `unwrap_or_else` instead
6 The function will always be called.
9 If the function has side-effects, not calling it will
10 change the semantics of the program, but you shouldn't rely on that anyway.
14 foo.expect(&format!("Err {}: {}", err_code, err_msg));
18 foo.expect(format!("Err {}: {}", err_code, err_msg).as_str());
23 foo.unwrap_or_else(|| panic!("Err {}: {}", err_code, err_msg));