Skip to content

Commit a76362d

Browse files
committed
fix: clippy
Signed-off-by: Woshiluo Luo <woshiluo.luo@outlook.com>
1 parent 2865dd1 commit a76362d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/de.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ where
7777

7878
let total_size = u32::from_be(header.total_size);
7979
let raw_data_len = (total_size - HEADER_LEN) as usize;
80-
let ans_ptr = core::ptr::from_raw_parts(ptr as *const u8, raw_data_len);
80+
let ans_ptr = core::ptr::from_raw_parts(ptr, raw_data_len);
8181
let device_tree: &DeviceTree = &*ans_ptr;
8282
let tags = device_tree.tags();
8383
let mut d = Deserializer {

src/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub trait DeviceTreeTraversal {
1111
}
1212
}
1313

14-
impl<'de> DeviceTreeTraversal for Node<'de> {
14+
impl DeviceTreeTraversal for Node<'_> {
1515
/// Try to get a node by path
1616
fn find(&self, path: &str) -> Option<Node> {
1717
// Direct return root node

0 commit comments

Comments
 (0)