Merge commit '0eff589afc' into clippyup

This commit is contained in:
flip1995 2021-12-30 15:10:43 +01:00
parent 01217f6f4c
commit 97ab44ca97
80 changed files with 1573 additions and 519 deletions

View file

@ -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!(),