Skip to content

Commit

Permalink
forbid(unsafe_op_in_unsafe_fn) in sys/os_str
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Jul 17, 2024
1 parent 10b845c commit a33abbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions library/std/src/sys/os_str/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![forbid(unsafe_op_in_unsafe_fn)]

cfg_if::cfg_if! {
if #[cfg(any(
target_os = "windows",
Expand Down
2 changes: 0 additions & 2 deletions library/std/src/sys/os_str/wtf8.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! The underlying OsString/OsStr implementation on Windows is a
//! wrapper around the "WTF-8" encoding; see the `wtf8` module for more.
#![deny(unsafe_op_in_unsafe_fn)]

use crate::borrow::Cow;
use crate::collections::TryReserveError;
use crate::fmt;
Expand Down

0 comments on commit a33abbb

Please sign in to comment.