Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers authored Jul 12, 2023
1 parent c57674a commit f2a95d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
}

0 comments on commit f2a95d7

Please sign in to comment.