We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb0e525 commit d4af625Copy full SHA for d4af625
src/de.rs
@@ -78,7 +78,8 @@ where
78
79
let total_size = u32::from_be(header.total_size);
80
let raw_data_len = (total_size - HEADER_LEN) as usize;
81
- let ans_ptr = core::ptr::from_raw_parts(ptr, raw_data_len);
+ let ans_ptr = core::ptr::slice_from_raw_parts(ptr, raw_data_len);
82
+ let ans_ptr = ans_ptr as *const DeviceTree;
83
let device_tree: &DeviceTree = &*ans_ptr;
84
let tags = device_tree.tags();
85
let mut d = Deserializer {
src/lib.rs
@@ -12,7 +12,6 @@
12
//! one with no-std support,
13
//! the other one doesn't even need alloc.
14
15
-#![feature(ptr_metadata)]
16
#![cfg_attr(not(feature = "std"), no_std)]
17
18
#[cfg(feature = "alloc")]
0 commit comments