std: unwrapped unsafe is VERBOTEN!
Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com>
This commit is contained in:
parent
8dafc5c819
commit
249905780f
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ pub struct DwarfReader {
|
|||
pub ptr: *const u8,
|
||||
}
|
||||
|
||||
#[deny(unsafe_op_in_unsafe_fn)]
|
||||
#[forbid(unsafe_op_in_unsafe_fn)]
|
||||
impl DwarfReader {
|
||||
pub fn new(ptr: *const u8) -> DwarfReader {
|
||||
DwarfReader { ptr }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue