refactor(str): import traits at top level#21243
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merging this PR will not alter performance
Comparing Footnotes
|
4071989 to
0c1e834
Compare
There was a problem hiding this comment.
Pull request overview
Refactors oxc_str::Ident’s standard library imports to bring commonly used traits (Debug, Display, Hash, Hasher) into scope at the top level, reducing module-qualified paths in impl blocks.
Changes:
- Replaces
std::{fmt, hash, ...}with explicitfmt::{self, Debug, Display}andhash::{Hash, Hasher}imports. - Updates trait impl headers and generic bounds to use the newly imported trait names (
impl Hash,H: Hasher,impl Debug,impl Display).
Merge activity
|
Pure refactor. Shorten and simplify code by importing traits like `Display` at top level.
4ef0b35 to
04b3c2f
Compare
0c1e834 to
24e9ee5
Compare

Pure refactor. Shorten and simplify code by importing traits like
Displayat top level.