Skip to content

Commit 4b8170a

Browse files
committed
Correct visit_select annotations
1 parent ae9bcaf commit 4b8170a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/ast/query.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ impl fmt::Display for ProjectionSelect {
149149
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
150150
pub enum SetExpr {
151151
/// Restricted SELECT .. FROM .. HAVING (no ORDER BY or set operations)
152-
Select(#[cfg_attr(feature = "visitor", visit(with = "visit_select"))] Box<Select>),
152+
Select(Box<Select>),
153153
/// Parenthesized SELECT subquery, which may include more set operations
154154
/// in its body and an optional ORDER BY / LIMIT.
155-
Query(#[cfg_attr(feature = "visitor", visit(with = "visit_query"))] Box<Query>),
155+
Query(Box<Query>),
156156
/// UNION/EXCEPT/INTERSECT of two queries
157157
/// A set operation combining two query expressions.
158158
SetOperation {
@@ -442,6 +442,7 @@ impl SelectModifiers {
442442
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
443443
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
444444
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
445+
#[cfg_attr(feature = "visitor", visit(with = "visit_select"))]
445446
pub struct Select {
446447
/// Token for the `SELECT` keyword
447448
pub select_token: AttachedToken,

0 commit comments

Comments
 (0)