Skip to content

Commit

Permalink
Allow symlinks to be followed for migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
djmarcin authored and mehcode committed Jan 21, 2021
1 parent 8328f89 commit 39544b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx-macros/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub(crate) fn expand_migrator_from_dir(dir: LitStr) -> crate::Result<proc_macro2

for entry in fs::read_dir(path)? {
let entry = entry?;
if !entry.metadata()?.is_file() {
if !fs::metadata(entry.path())?.is_file() {
// not a file; ignore
continue;
}
Expand Down

0 comments on commit 39544b1

Please sign in to comment.