1
Fork 0

forbid(unsafe_op_in_unsafe_fn) in sys/os_str

This commit is contained in:
Chris Denton 2024-07-17 05:52:38 +00:00
parent 10b845cbc8
commit a33abbba98
No known key found for this signature in database
GPG key ID: 713472F2F45627DE
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,5 @@
#![forbid(unsafe_op_in_unsafe_fn)]
cfg_if::cfg_if! { cfg_if::cfg_if! {
if #[cfg(any( if #[cfg(any(
target_os = "windows", target_os = "windows",

View file

@ -1,7 +1,5 @@
//! The underlying OsString/OsStr implementation on Windows is a //! The underlying OsString/OsStr implementation on Windows is a
//! wrapper around the "WTF-8" encoding; see the `wtf8` module for more. //! wrapper around the "WTF-8" encoding; see the `wtf8` module for more.
#![deny(unsafe_op_in_unsafe_fn)]
use crate::borrow::Cow; use crate::borrow::Cow;
use crate::collections::TryReserveError; use crate::collections::TryReserveError;
use crate::fmt; use crate::fmt;