Replace Symbol::as_str usage in match expressions

This commit is contained in:
Alex Macleod 2025-05-07 13:52:11 +00:00
parent cf6bebb343
commit 5aac708398
25 changed files with 281 additions and 148 deletions

View file

@ -32,12 +32,14 @@ macro_rules! generate {
generate! {
abs,
align_of,
ambiguous_glob_reexports,
as_bytes,
as_deref_mut,
as_deref,
as_mut,
AsyncReadExt,
AsyncWriteExt,
BACKSLASH_SINGLE_QUOTE: r"\'",
Binary,
build_hasher,
bytes,
@ -59,8 +61,11 @@ generate! {
de,
Deserialize,
diagnostics,
disallowed_types,
DOUBLE_QUOTE: "\"",
EarlyLintPass,
ends_with,
enum_glob_use,
error,
ErrorKind,
exp,
@ -69,12 +74,16 @@ generate! {
finish,
flat_map,
for_each,
from_bytes_with_nul_unchecked,
from_bytes_with_nul,
from_ptr,
from_raw,
from_ref,
from_str_radix,
fs,
futures_util,
get,
hidden_glob_reexports,
hygiene,
insert,
int_roundings,
@ -96,20 +105,27 @@ generate! {
Lazy,
LF: "\n",
Lint,
ln,
lock_api,
log,
LowerExp,
LowerHex,
macro_use_imports,
map_or_else,
map_or,
max,
MAX,
mem,
min,
MIN,
mode,
module_name_repetitions,
msrv,
msrvs,
MsrvStack,
mut_ptr,
mutex,
needless_return,
next_tuple,
Octal,
once_cell,
@ -119,7 +135,10 @@ generate! {
parse,
PathLookup,
paths,
powf,
powi,
push,
redundant_pub_crate,
regex,
Regex,
RegexBuilder,
@ -137,29 +156,45 @@ generate! {
set_mode,
set_readonly,
signum,
single_component_path_imports,
span_lint_and_then,
split_whitespace,
split,
sqrt,
Start,
Step,
style,
symbol,
Symbol,
SyntaxContext,
take,
TBD,
then_some,
to_ascii_lowercase,
to_ascii_uppercase,
to_digit,
to_lowercase,
to_owned,
to_uppercase,
tokio,
unreachable_pub,
unsafe_removed_from_name,
unused_braces,
unused_extern_crates,
unused_import_braces,
unused_trait_names,
unused,
unwrap_err,
unwrap_or_default,
unwrap_or_else,
UpperExp,
UpperHex,
V4,
V6,
Visitor,
warnings,
Weak,
wildcard_imports,
with_capacity,
wrapping_offset,
}