Skip to content

Commit b7589c0

Browse files
ahaviliclaude
andcommitted
chore: fix formatting (cargo fmt)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d7b2ed5 commit b7589c0

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

grapha-core/src/merge.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,7 @@ fn resolve_candidates(
456456
// edge is better than N false positives (e.g., "horizontal", "top").
457457
// Count unique files, not raw candidates, so a type with extensions
458458
// in the same file isn't penalized.
459-
let unique_files: HashSet<&str> = same_module
460-
.iter()
461-
.map(|c| c.file.as_str())
462-
.collect();
459+
let unique_files: HashSet<&str> = same_module.iter().map(|c| c.file.as_str()).collect();
463460
if unique_files.len() > 3 {
464461
return Vec::new();
465462
}
@@ -483,10 +480,7 @@ fn resolve_candidates(
483480
return vec![(imported[0].id.clone(), 0.8)];
484481
}
485482
if imported.len() > 1 {
486-
let unique_files: HashSet<&str> = imported
487-
.iter()
488-
.map(|c| c.file.as_str())
489-
.collect();
483+
let unique_files: HashSet<&str> = imported.iter().map(|c| c.file.as_str()).collect();
490484
if unique_files.len() > 3 {
491485
return Vec::new();
492486
}

grapha/src/query/impact.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,7 @@ pub fn query_impact(
123123
// at depth 0 so that callers of members appear as depth_1 dependents.
124124
let is_type_node = matches!(
125125
node.kind,
126-
NodeKind::Struct
127-
| NodeKind::Class
128-
| NodeKind::Enum
129-
| NodeKind::Protocol
130-
| NodeKind::Trait
126+
NodeKind::Struct | NodeKind::Class | NodeKind::Enum | NodeKind::Protocol | NodeKind::Trait
131127
);
132128
if is_type_node {
133129
for edge in &graph.edges {

0 commit comments

Comments
 (0)