Skip to content

Commit 14b0eed

Browse files
clippy
1 parent 98a417c commit 14b0eed

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
@@ -585,19 +585,19 @@ impl ImportTracker {
585585
{
586586
continue;
587587
}
588-
if self.module_is_imported(&module) {
588+
if self.module_is_imported(module) {
589589
continue;
590590
}
591591
missing.insert(module);
592592
}
593593
missing
594594
}
595595

596-
fn module_is_imported(&self, module: &ModuleName) -> bool {
596+
fn module_is_imported(&self, module: ModuleName) -> bool {
597597
self.alias_for(module).is_some() || self.has_canonical(module)
598598
}
599599

600-
fn alias_for(&self, module: &ModuleName) -> Option<String> {
600+
fn alias_for(&self, module: ModuleName) -> Option<String> {
601601
let target = module.as_str();
602602
for (alias_module, alias_name) in &self.alias_modules {
603603
let alias_module_str = alias_module.as_str();
@@ -618,7 +618,7 @@ impl ImportTracker {
618618
None
619619
}
620620

621-
fn has_canonical(&self, module: &ModuleName) -> bool {
621+
fn has_canonical(&self, module: ModuleName) -> bool {
622622
let target = module.as_str();
623623
self.canonical_modules.iter().any(|imported| {
624624
let imported_str = imported.as_str();

0 commit comments

Comments
 (0)