Skip to content

Commit 03b85d1

Browse files
clippy
1 parent c4f831e commit 03b85d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyrefly/lib/state/lsp.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,19 +573,19 @@ impl ImportTracker {
573573
{
574574
continue;
575575
}
576-
if self.module_is_imported(&module) {
576+
if self.module_is_imported(module) {
577577
continue;
578578
}
579579
missing.insert(module);
580580
}
581581
missing
582582
}
583583

584-
fn module_is_imported(&self, module: &ModuleName) -> bool {
584+
fn module_is_imported(&self, module: ModuleName) -> bool {
585585
self.alias_for(module).is_some() || self.has_canonical(module)
586586
}
587587

588-
fn alias_for(&self, module: &ModuleName) -> Option<String> {
588+
fn alias_for(&self, module: ModuleName) -> Option<String> {
589589
let target = module.as_str();
590590
for (alias_module, alias_name) in &self.alias_modules {
591591
let alias_module_str = alias_module.as_str();
@@ -606,7 +606,7 @@ impl ImportTracker {
606606
None
607607
}
608608

609-
fn has_canonical(&self, module: &ModuleName) -> bool {
609+
fn has_canonical(&self, module: ModuleName) -> bool {
610610
let target = module.as_str();
611611
self.canonical_modules.iter().any(|imported| {
612612
let imported_str = imported.as_str();

0 commit comments

Comments
 (0)