Skip to content

Commit 18c3fd0

Browse files
Merge branch 'main' into pathological
2 parents f0d0a24 + e999d3d commit 18c3fd0

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
with:
8383
targets: 'thumbv6m-none-eabi'
8484
- run: cargo check --no-default-features --target thumbv6m-none-eabi
85+
- run: cargo check --no-default-features --features visitor --target thumbv6m-none-eabi
8586

8687
test:
8788
strategy:

derive/src/visit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ pub(crate) fn derive_visit(
6262
fn visit<V: sqlparser::ast::#visitor_trait>(
6363
&#modifier self,
6464
visitor: &mut V
65-
) -> ::std::ops::ControlFlow<V::Break> {
65+
) -> ::core::ops::ControlFlow<V::Break> {
6666
#pre_visit
6767
#children
6868
#post_visit
69-
::std::ops::ControlFlow::Continue(())
69+
::core::ops::ControlFlow::Continue(())
7070
}
7171
}
7272
};

src/ast/visitor.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717

1818
//! Recursive visitors for ast Nodes. See [`Visitor`] for more details.
1919
20-
use crate::ast::{Expr, ObjectName, Query, Select, Statement, TableFactor, ValueWithSpan};
20+
#[cfg(not(feature = "std"))]
21+
use alloc::{boxed::Box, string::String, vec::Vec};
2122
use core::ops::ControlFlow;
2223

24+
use crate::ast::{Expr, ObjectName, Query, Select, Statement, TableFactor, ValueWithSpan};
25+
2326
/// A type that can be visited by a [`Visitor`]. See [`Visitor`] for
2427
/// recursively visiting parsed SQL statements.
2528
///

0 commit comments

Comments
 (0)