Merge commit '0eff589afc' into clippyup
This commit is contained in:
parent
01217f6f4c
commit
97ab44ca97
80 changed files with 1573 additions and 519 deletions
|
|
@ -161,7 +161,7 @@ fn collect_unwrap_info<'tcx>(
|
|||
if is_relevant_option_call(cx, ty, name) || is_relevant_result_call(cx, ty, name);
|
||||
then {
|
||||
assert!(args.len() == 1);
|
||||
let unwrappable = match name.as_ref() {
|
||||
let unwrappable = match name {
|
||||
"is_some" | "is_ok" => true,
|
||||
"is_err" | "is_none" => false,
|
||||
_ => unreachable!(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue