Skip to content

Commit 01fcbea

Browse files
committed
Fix issues the latest version of clippy picks up
Prior to this, these lines caused errors when linting rust.
1 parent 60fe236 commit 01fcbea

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎rust/src/graph/mod.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl GraphWrapper {
229229
if self.is_module_squashed(&ancestor_module).unwrap_or(false) {
230230
return Err(PyValueError::new_err(format!(
231231
"Module is a descendant of squashed module {}.",
232-
&ancestor_module,
232+
ancestor_module,
233233
)));
234234
};
235235
}

‎rust/src/import_parsing.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ impl<'a> StatementVisitor<'a> for Visitor<'a> {
9696
format!(
9797
"{}{}.{}",
9898
".".repeat(import_from_stmt.level as usize),
99-
&module.id,
100-
&name.name.id
99+
module.id,
100+
name.name.id
101101
)
102102
}
103103
None => {
104104
format!(
105105
"{}{}",
106106
".".repeat(import_from_stmt.level as usize),
107-
&name.name.id
107+
name.name.id
108108
)
109109
}
110110
};

0 commit comments

Comments
 (0)