std: unwrapped unsafe is VERBOTEN!
Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com>
This commit is contained in:
parent
8dafc5c819
commit
249905780f
@ -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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user