File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments