about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbendn <bend.n@outlook.com>2025-09-04 14:06:44 +0700
committerbendn <bend.n@outlook.com>2025-09-04 18:33:47 +0700
commit1e37c1fe2e29d88d4843e7c0ce46e50edd9f7251 (patch)
tree959239027d71c6e29847d28a4398c1daae2120c6
parentf19da67ed75468a2cb90572c065d1c3e2a8cadec (diff)
downloadrust-1e37c1fe2e29d88d4843e7c0ce46e50edd9f7251.tar.gz
rust-1e37c1fe2e29d88d4843e7c0ce46e50edd9f7251.zip
fix
-rw-r--r--library/std/src/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index 531a1aa4215..19663e4a9df 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -2107,7 +2107,7 @@ impl PartialEq for PathBuf {
 impl cmp::PartialEq<str> for PathBuf {
     #[inline]
     fn eq(&self, other: &str) -> bool {
-        &*self == other
+        Path::eq(self, other)
     }
 }