Skip to content

Commit eb81387

Browse files
authored
chore: switch to file_type for symlink check (#31)
Signed-off-by: Jérémy Audiger <jeremy.audiger@icloud.com>
1 parent edc8646 commit eb81387

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/brioche-autopack/src

crates/brioche-autopack/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ fn autopack_context(config: &AutopackConfig) -> eyre::Result<AutopackContext> {
326326
for entry in library_path_env_dir_entries {
327327
let entry = entry?;
328328
eyre::ensure!(
329-
entry.metadata()?.is_symlink(),
329+
entry.file_type()?.is_symlink(),
330330
"expected {:?} to be a symlink",
331331
entry.path()
332332
);
@@ -355,7 +355,7 @@ fn autopack_context(config: &AutopackConfig) -> eyre::Result<AutopackContext> {
355355
for entry in path_env_dir_entries {
356356
let entry = entry?;
357357
eyre::ensure!(
358-
entry.metadata()?.is_symlink(),
358+
entry.file_type()?.is_symlink(),
359359
"expected {:?} to be a symlink",
360360
entry.path()
361361
);

0 commit comments

Comments
 (0)