Skip to content

Commit dc09df7

Browse files
committed
style: remove needless borrows in call_graph_integration tests
Fix clippy needless_borrow warnings by removing unnecessary & references when calling get_callers and get_callees methods, as they already accept references that get immediately dereferenced.
1 parent 903f1fd commit dc09df7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/analyzers/call_graph_integration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ mod tests {
281281
// Debug: print call graph state
282282
eprintln!("Call graph functions:");
283283
for func in call_graph.get_all_functions() {
284-
let callers_vec = call_graph.get_callers(&func);
284+
let callers_vec = call_graph.get_callers(func);
285285
let callers: Vec<_> = callers_vec.iter().map(|f| &f.name).collect();
286-
let callees_vec = call_graph.get_callees(&func);
286+
let callees_vec = call_graph.get_callees(func);
287287
let callees: Vec<_> = callees_vec.iter().map(|f| &f.name).collect();
288288
eprintln!(
289289
" {}:{} (line {}) - callers: {:?}, callees: {:?}",

0 commit comments

Comments
 (0)