mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix(macros): use resolve_path when getting path for include_str!() (#1392)
fixes #1387
This commit is contained in:
parent
207e6db2ce
commit
c04f83bcfe
@ -120,7 +120,7 @@ impl QuerySrc {
|
||||
|
||||
fn file_path(&self, source_span: Span) -> syn::Result<Option<String>> {
|
||||
if let QuerySrc::File(ref file) = *self {
|
||||
let path = std::path::Path::new(file)
|
||||
let path = crate::common::resolve_path(file, source_span)?
|
||||
.canonicalize()
|
||||
.map_err(|e| syn::Error::new(source_span, e))?;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user