Skip to content

Commit 3709ca6

Browse files
Alexandra Iordachelauralt
authored andcommitted
fix clippy lints
Signed-off-by: Alexandra Iordache <[email protected]>
1 parent 0d6297a commit 3709ca6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/writer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ impl FdtWriter {
467467
pub fn property_array_u32(&mut self, name: &str, cells: &[u32]) -> Result<()> {
468468
let mut arr = Vec::with_capacity(size_of_val(cells));
469469
for &c in cells {
470-
arr.extend(&c.to_be_bytes());
470+
arr.extend(c.to_be_bytes());
471471
}
472472
self.property(name, &arr)
473473
}
@@ -476,7 +476,7 @@ impl FdtWriter {
476476
pub fn property_array_u64(&mut self, name: &str, cells: &[u64]) -> Result<()> {
477477
let mut arr = Vec::with_capacity(size_of_val(cells));
478478
for &c in cells {
479-
arr.extend(&c.to_be_bytes());
479+
arr.extend(c.to_be_bytes());
480480
}
481481
self.property(name, &arr)
482482
}

0 commit comments

Comments
 (0)