Skip to content

Commit 40a7c4e

Browse files
committed
Fix default migrations directory for macro
1 parent e686352 commit 40a7c4e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sqlx-macros/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ pub fn migrate(input: TokenStream) -> TokenStream {
139139
let mut elems = elems.into_iter();
140140
(extract_dir(elems.next()), elems.next())
141141
}
142+
Expr::Lit(ExprLit {
143+
lit: Lit::Str(lit_str),
144+
..
145+
}) => {
146+
(lit_str, None)
147+
}
142148
Expr::Group(group) => {
143149
if let Expr::Lit(ExprLit {
144150
lit: Lit::Str(lit_str),

0 commit comments

Comments
 (0)