We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 339d41d commit c4ab79bCopy full SHA for c4ab79b
src/builder/analyzer.rs
@@ -982,13 +982,13 @@ impl AnalyzerContext {
982
983
fn build_scope_qualifier(&self, op_scope: &Arc<OpScope>) -> String {
984
let mut scope_names = Vec::new();
985
- let mut current_scope = Some(op_scope.as_ref());
+ let mut current_scope = op_scope.as_ref();
986
987
// 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());
+ loop {
+ if let Some((parent, _)) = ¤t_scope.parent {
+ scope_names.push(current_scope.name.clone());
+ current_scope = parent.as_ref();
992
} else {
993
break;
994
}
0 commit comments