-
Notifications
You must be signed in to change notification settings - Fork 17
Rust importscanner review fixes #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust importscanner review fixes #245
Conversation
Remove unused `EMPTY_IMPORTS`.
CodSpeed Instrumentation Performance ReportMerging #245 will not alter performanceComparing Summary
|
| lazy_static! { | ||
| static ref ENCODING_RE: Regex = Regex::new(r"^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)").unwrap(); | ||
| } | ||
| static ENCODING_RE: LazyLock<Regex> = LazyLock::new(|| { | ||
| Regex::new(r"^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)").unwrap() | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| RwLock::new(StringInterner::default()); | ||
| static ref EMPTY_MODULE_TOKENS: FxHashSet<ModuleToken> = FxHashSet::default(); | ||
| static ref EMPTY_IMPORT_DETAILS: FxHashSet<ImportDetails> = FxHashSet::default(); | ||
| static ref EMPTY_IMPORTS: FxHashSet<(ModuleToken, ModuleToken)> = FxHashSet::default(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EMPTY_IMPORTS was unused, so I've removed it.
seddonym
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff, thanks!
Follow up to #229.