Skip to content

Commit c04f83b

Browse files
authored
fix(macros): use resolve_path when getting path for include_str!() (#1392)
fixes #1387
1 parent 207e6db commit c04f83b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-macros/src/query/input.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl QuerySrc {
120120

121121
fn file_path(&self, source_span: Span) -> syn::Result<Option<String>> {
122122
if let QuerySrc::File(ref file) = *self {
123-
let path = std::path::Path::new(file)
123+
let path = crate::common::resolve_path(file, source_span)?
124124
.canonicalize()
125125
.map_err(|e| syn::Error::new(source_span, e))?;
126126

0 commit comments

Comments
 (0)