Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b4d1392

Browse files
committedJul 17, 2024
forbid(unsafe_op_in_unsafe_fn) in sys/os_str
1 parent 7a0b2fb commit b4d1392

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎std/src/sys/os_str/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![forbid(unsafe_op_in_unsafe_fn)]
2+
13
cfg_if::cfg_if! {
24
if #[cfg(any(
35
target_os = "windows",

‎std/src/sys/os_str/wtf8.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! The underlying OsString/OsStr implementation on Windows is a
22
//! wrapper around the "WTF-8" encoding; see the `wtf8` module for more.
3-
#![deny(unsafe_op_in_unsafe_fn)]
4-
53
use crate::borrow::Cow;
64
use crate::collections::TryReserveError;
75
use crate::fmt;

0 commit comments

Comments
 (0)
Failed to load comments.