Skip to content

Commit c4ab79b

Browse files
committed
removed assigning current_scope as Option
1 parent 339d41d commit c4ab79b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/builder/analyzer.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -982,13 +982,13 @@ impl AnalyzerContext {
982982

983983
fn build_scope_qualifier(&self, op_scope: &Arc<OpScope>) -> String {
984984
let mut scope_names = Vec::new();
985-
let mut current_scope = Some(op_scope.as_ref());
985+
let mut current_scope = op_scope.as_ref();
986986

987987
// Walk up the parent chain to collect scope names
988-
while let Some(scope) = current_scope {
989-
if let Some((parent, _)) = &scope.parent {
990-
scope_names.push(scope.name.clone());
991-
current_scope = Some(parent.as_ref());
988+
loop {
989+
if let Some((parent, _)) = &current_scope.parent {
990+
scope_names.push(current_scope.name.clone());
991+
current_scope = parent.as_ref();
992992
} else {
993993
break;
994994
}

0 commit comments

Comments
 (0)