Skip to content

Commit e93c8ee

Browse files
Added alloc imports for no-std case
1 parent dc5f3d4 commit e93c8ee

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ast/statement_from_impls.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,21 @@
1717

1818
//! Implementations of the `From` trait to convert from various
1919
//! AST nodes to `Statement` nodes.
20-
2120
use crate::ast::{
2221
AlterSchema, AlterType, CaseStatement, CreateConnector, CreateDomain, CreateFunction,
2322
CreateIndex, CreateServerStatement, CreateTable, CreateTrigger, CreateUser, Delete,
2423
DenyStatement, DropDomain, DropTrigger, ExportData, Function, IfStatement, Insert,
2524
OpenStatement, PrintStatement, Query, RaiseStatement, RenameTable, ReturnStatement, Set,
2625
ShowCharset, ShowObjects, Statement, Use, VacuumStatement, WhileStatement,
2726
};
27+
#[cfg(not(feature = "std"))]
28+
use alloc::{
29+
boxed::Box,
30+
format,
31+
string::{String, ToString},
32+
vec,
33+
vec::Vec,
34+
};
2835

2936
impl From<Set> for Statement {
3037
fn from(s: Set) -> Self {

0 commit comments

Comments
 (0)