Skip to content

Commit 6da0aa3

Browse files
committed
style(eql-mapper): simplify unused variable binding in EXPLAIN handler
Move comment and underscore prefix into pattern destructuring rather than using a separate let binding to suppress the unused variable warning.
1 parent c615346 commit 6da0aa3

File tree

1 file changed

+2
-4
lines changed
  • packages/eql-mapper/src/inference/infer_type_impls

1 file changed

+2
-4
lines changed

packages/eql-mapper/src/inference/infer_type_impls/statement.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,14 @@ impl<'ast> InferType<'ast, Statement> for TypeInferencer<'ast> {
8080
}
8181

8282
Statement::Explain {
83-
statement: inner_statement,
83+
// Note: inner statement's type inference happens through normal AST traversal
84+
statement: _inner_statement,
8485
..
8586
} => {
8687
// Recursively type-check the inner statement so transformations apply
8788
// EXPLAIN itself returns metadata, not the query results - give it empty projection
8889
self.unify_node_with_type(statement, Type::empty_projection())?;
89-
// Note: inner statement's type inference happens through normal AST traversal
90-
let _inner_statement = inner_statement; // Handled by visitor
9190
}
92-
9391
_ => {}
9492
};
9593

0 commit comments

Comments
 (0)