From 454a77e667b00a0aeb492dab9a81e69e77178802 Mon Sep 17 00:00:00 2001 From: TD-Sky Date: Wed, 17 May 2023 15:46:48 +0800 Subject: [PATCH] make `virtually_exists` private --- src/freedesktop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedesktop.rs b/src/freedesktop.rs index 03e2f44..5d19991 100644 --- a/src/freedesktop.rs +++ b/src/freedesktop.rs @@ -219,7 +219,7 @@ pub fn list() -> Result, Error> { /// - nothing => Ok(false) /// - I/O Error => Err(Io) #[inline] -pub fn virtually_exists(path: &Path) -> std::io::Result { +fn virtually_exists(path: &Path) -> std::io::Result { Ok(path.try_exists()? || path.is_symlink()) }