Allow symlinks to be followed for migration files

This commit is contained in:
David Marcin 2021-01-15 21:56:30 +00:00 committed by Ryan Leckey
parent 8328f893e4
commit 39544b1dd4

View File

@ -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;
}