From f2a95d79f91bee53de9af43f0727cab274768fbe Mon Sep 17 00:00:00 2001 From: Rain Date: Tue, 11 Jul 2023 23:16:49 -0700 Subject: [PATCH] Update lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4b3bc872e5..2b4840b0da 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3025,6 +3025,6 @@ unsafe fn str_assume_utf8(string: &OsStr) -> &str { // Adapted from the source code for Option::unwrap_unchecked. match string.to_str() { Some(val) => val, - None => unsafe { std::hint::unreachable_unchecked() }, + None => std::hint::unreachable_unchecked(), } }