mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue