about summary refs log tree commit diff
path: root/library/std/src/sys/unix/path.rs
diff options
context:
space:
mode:
authorThe8472 <git@infinite-source.de>2021-11-11 21:42:59 +0100
committerThe8472 <git@infinite-source.de>2021-11-11 21:44:12 +0100
commitc1ea7bdc87a07c733769fd6adaa16818d692df24 (patch)
treea410466fb44e116fef9ee1e5e83c1dcfae64c98b /library/std/src/sys/unix/path.rs
parenta6e0aa20d90ee9173a6b901c641a8d48abbd82db (diff)
downloadrust-c1ea7bdc87a07c733769fd6adaa16818d692df24.tar.gz
rust-c1ea7bdc87a07c733769fd6adaa16818d692df24.zip
`Prefix` can be case-insensitive, delegate to its Hash impl instead of trying to hash the raw bytes
This should have 0 performance overhead on unix since Prefix is always None.
Diffstat (limited to 'library/std/src/sys/unix/path.rs')
-rw-r--r--library/std/src/sys/unix/path.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/path.rs b/library/std/src/sys/unix/path.rs
index 840a7ae0426..717add9ec48 100644
--- a/library/std/src/sys/unix/path.rs
+++ b/library/std/src/sys/unix/path.rs
@@ -11,6 +11,7 @@ pub fn is_verbatim_sep(b: u8) -> bool {
     b == b'/'
 }
 
+#[inline]
 pub fn parse_prefix(_: &OsStr) -> Option<Prefix<'_>> {
     None
 }