std: unwrapped unsafe is VERBOTEN!

Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com>
This commit is contained in:
Jubilee 2024-07-16 12:51:14 -07:00 committed by GitHub
parent 8dafc5c819
commit 249905780f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@ pub struct DwarfReader {
pub ptr: *const u8, pub ptr: *const u8,
} }
#[deny(unsafe_op_in_unsafe_fn)] #[forbid(unsafe_op_in_unsafe_fn)]
impl DwarfReader { impl DwarfReader {
pub fn new(ptr: *const u8) -> DwarfReader { pub fn new(ptr: *const u8) -> DwarfReader {
DwarfReader { ptr } DwarfReader { ptr }