Skip to content

Commit 2345a21

Browse files
committed
Fix build
1 parent efa142c commit 2345a21

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

src/ast/dml.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616
// under the License.
1717

1818
#[cfg(not(feature = "std"))]
19-
use alloc::{
20-
boxed::Box,
21-
format,
22-
string::{String, ToString},
23-
vec::Vec,
24-
};
19+
use alloc::{boxed::Box, format, string::ToString, vec::Vec};
2520

2621
use core::fmt::{self, Display};
2722
#[cfg(feature = "serde")]

src/ast/helpers/stmt_create_database.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// under the License.
1717

1818
#[cfg(not(feature = "std"))]
19-
use alloc::{boxed::Box, format, string::String, vec, vec::Vec};
19+
use alloc::{format, string::String, vec::Vec};
2020

2121
#[cfg(feature = "serde")]
2222
use serde::{Deserialize, Serialize};

src/parser/alter.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
1515
#[cfg(not(feature = "std"))]
1616
use alloc::vec;
17+
#[cfg(not(feature = "std"))]
18+
use alloc::{boxed::Box, string::ToString};
1719

1820
use super::{Parser, ParserError};
1921
use crate::{
@@ -309,7 +311,7 @@ impl Parser<'_> {
309311
} else if self.parse_keyword(Keyword::DUO) {
310312
Ok(MfaMethodKind::Duo)
311313
} else {
312-
return self.expected("PASSKEY, TOTP or DUO", self.peek_token());
314+
self.expected("PASSKEY, TOTP or DUO", self.peek_token())
313315
}
314316
}
315317

0 commit comments

Comments
 (0)