Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
with:
targets: 'thumbv6m-none-eabi'
- run: cargo check --no-default-features --target thumbv6m-none-eabi
- run: cargo check --no-default-features --features visitor --target thumbv6m-none-eabi

test:
strategy:
Expand Down
4 changes: 2 additions & 2 deletions derive/src/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ pub(crate) fn derive_visit(
fn visit<V: sqlparser::ast::#visitor_trait>(
&#modifier self,
visitor: &mut V
) -> ::std::ops::ControlFlow<V::Break> {
) -> ::core::ops::ControlFlow<V::Break> {
#pre_visit
#children
#post_visit
::std::ops::ControlFlow::Continue(())
::core::ops::ControlFlow::Continue(())
}
}
};
Expand Down
5 changes: 4 additions & 1 deletion src/ast/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@

//! Recursive visitors for ast Nodes. See [`Visitor`] for more details.

use crate::ast::{Expr, ObjectName, Query, Select, Statement, TableFactor, ValueWithSpan};
#[cfg(not(feature = "std"))]
use alloc::{boxed::Box, string::String, vec::Vec};
use core::ops::ControlFlow;

use crate::ast::{Expr, ObjectName, Query, Select, Statement, TableFactor, ValueWithSpan};

/// A type that can be visited by a [`Visitor`]. See [`Visitor`] for
/// recursively visiting parsed SQL statements.
///
Expand Down
Loading