Skip to content

Commit 486ab6b

Browse files
committed
chore: apply clippy suggestion
1 parent d1a1e1c commit 486ab6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/ruff_graph/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl ModuleImports {
5050
continue;
5151
}
5252

53-
for resolved in Resolver::new(db).resolve(import) {
53+
for resolved in Resolver::new(db).resolve(&import) {
5454
if let Some(path) = resolved.as_system_path() {
5555
resolved_imports.insert(path.to_path_buf());
5656
}

crates/ruff_graph/src/resolver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl<'a> Resolver<'a> {
1616
}
1717

1818
/// Resolve the [`CollectedImport`] into a [`FilePath`].
19-
pub(crate) fn resolve(&self, import: CollectedImport) -> impl Iterator<Item = &'a FilePath> {
19+
pub(crate) fn resolve(&self, import: &CollectedImport) -> impl Iterator<Item = &'a FilePath> {
2020
let module_name = &import.module_name;
2121
match import.import_kind {
2222
ImportKind::Import => {

0 commit comments

Comments
 (0)