Skip to content

Commit 3d1e051

Browse files
committed
fix(native): drop struct-pattern braces on unit variants in LocalSource match
1 parent a317c0d commit 3d1e051

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/codegraph-core/src/ast_analysis/dataflow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,8 +908,8 @@ fn find_binding(scope_stack: &[ScopeFrame], name: &str) -> Option<BindingInfo> {
908908
}
909909
if let Some(local) = scope.locals.get(name) {
910910
let confidence = match local {
911-
LocalSource::CallReturn { .. } => 0.9,
912-
LocalSource::Destructured { .. } => 0.8,
911+
LocalSource::CallReturn => 0.9,
912+
LocalSource::Destructured => 0.8,
913913
};
914914
return Some(BindingInfo {
915915
binding_type: "local".to_string(),

0 commit comments

Comments
 (0)