Apply fixes from lint

This commit is contained in:
GnomedDev 2024-10-13 16:27:05 +01:00
parent 6b1779b0ee
commit dedc380df9
No known key found for this signature in database
27 changed files with 50 additions and 50 deletions

View file

@ -116,7 +116,7 @@ fn should_lint<'tcx>(
if path.ident.name == sym::debug_struct && is_type_diagnostic_item(cx, recv_ty, sym::Formatter) {
has_debug_struct = true;
} else if path.ident.name == sym!(finish_non_exhaustive)
} else if path.ident.name.as_str() == "finish_non_exhaustive"
&& is_type_diagnostic_item(cx, recv_ty, sym::DebugStruct)
{
has_finish_non_exhaustive = true;