1
Fork 0

Rollup merge of #118885 - matthiaskrgr:compl_2023, r=compiler-errors

clippy::complexity fixes

 filter_map_identity
 needless_bool
 search_is_some
 unit_arg
 map_identity
 needless_question_mark
 derivable_impls
This commit is contained in:
Jubilee 2023-12-12 18:48:53 -08:00 committed by GitHub
commit 5308733112
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 33 deletions

View file

@ -1069,7 +1069,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
if !self.tcx.is_diagnostic_item(sym::Result, def.did()) {
return None;
}
Some(arg.as_type()?)
arg.as_type()
};
let mut suggested = false;