diff --git a/Cargo.lock b/Cargo.lock index 22d47e90..6e341b84 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -431,9 +431,9 @@ checksum = "f4ad8f11f288f48ca24471bbd51ac257aaeaaa07adae295591266b792902ae64" [[package]] name = "bumpalo" -version = "3.19.0" +version = "3.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" +checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510" [[package]] name = "by_address" @@ -2002,9 +2002,9 @@ checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de" [[package]] name = "libredox" -version = "0.1.10" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "416f7e718bdb06000964960ffa43b4335ad4012ae8b99060261aa4a8088d5ccb" +checksum = "df15f6eac291ed1cf25865b1ee60399f57e7c227e7f51bdbd4c5270396a9ed50" dependencies = [ "bitflags 2.10.0", "libc", @@ -4105,9 +4105,9 @@ dependencies = [ [[package]] name = "uzers" -version = "0.12.1" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4df81ff504e7d82ad53e95ed1ad5b72103c11253f39238bcc0235b90768a97dd" +checksum = "0b8275fb1afee25b4111d2dc8b5c505dbbc4afd0b990cb96deb2d88bff8be18d" dependencies = [ "libc", "log", diff --git a/Cargo.toml b/Cargo.toml index 02b57583..7b9f7f0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,7 +64,7 @@ tracing = { version = "0.1.43", features = [ "max_level_debug", "rel twox-hash = { version = "2.1.2", default-features = false, features = [ "std", "random", "xxhash3_128" ] } typed-path = "0.12.0" unicode-width = { version = "0.2.0", default-features = false } -uzers = "0.12.1" +uzers = "0.12.2" [workspace.lints.clippy] format_push_string = "warn" diff --git a/yazi-shared/src/path/like.rs b/yazi-shared/src/path/like.rs index 6fe25ce4..2c5ef1f2 100644 --- a/yazi-shared/src/path/like.rs +++ b/yazi-shared/src/path/like.rs @@ -79,18 +79,18 @@ pub trait PathLike: AsPath { self.as_path().try_starts_with(base) } - fn try_strip_prefix(&self, suffix: T) -> Result, StripPrefixError> + fn try_strip_prefix(&self, base: T) -> Result, StripPrefixError> where T: AsStrand, { - self.as_path().try_strip_prefix(suffix) + self.as_path().try_strip_prefix(base) } - fn try_strip_suffix(&self, base: T) -> Result, StripSuffixError> + fn try_strip_suffix(&self, suffix: T) -> Result, StripSuffixError> where T: AsStrand, { - self.as_path().try_strip_suffix(base) + self.as_path().try_strip_suffix(suffix) } }