diff options
| author | llogiq <bogusandre@gmail.com> | 2025-06-04 05:16:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-04 05:16:22 +0000 |
| commit | 84ef7fb4144c7efbc541e47cb9fd11cd312674b3 (patch) | |
| tree | a7a4112e9758027e3d6bfdfd88e96abc8d340453 /clippy_utils/src/sym.rs | |
| parent | a4debd23453c05ab0fc278ed4e544458bac1985f (diff) | |
| parent | 2a5a2fae2c253903074e8a55f9be9c8eb5a29136 (diff) | |
Use interned strings when possible, for efficiency purposes (#14963)
Also, a number of unnecessary `.as_str()` calls have been removed for clarity. changelog: none
Diffstat (limited to 'clippy_utils/src/sym.rs')
| -rw-r--r-- | clippy_utils/src/sym.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clippy_utils/src/sym.rs b/clippy_utils/src/sym.rs index 67e5145033e..a544954931b 100644 --- a/clippy_utils/src/sym.rs +++ b/clippy_utils/src/sym.rs @@ -84,6 +84,7 @@ generate! { as_deref, as_deref_mut, as_mut, + as_path, assert_failed, author, borrow, @@ -121,6 +122,8 @@ generate! { copy_to, copy_to_nonoverlapping, count_ones, + create, + create_new, cycle, cyclomatic_complexity, de, @@ -256,9 +259,12 @@ generate! { powi, product, push, + read, + read_exact, read_line, read_to_end, read_to_string, + read_unaligned, redundant_pub_crate, regex, rem_euclid, @@ -338,8 +344,11 @@ generate! { to_uppercase, tokio, trim, + trim_end, trim_end_matches, + trim_start, trim_start_matches, + truncate, unreachable_pub, unsafe_removed_from_name, unused, @@ -354,12 +363,15 @@ generate! { unwrap_unchecked, unzip, utils, + visit_str, + visit_string, wake, warnings, wildcard_imports, with_capacity, wrapping_offset, write, + write_unaligned, writeln, zip, } |
