Skip to content

Commit

Permalink
fix cargo clippies
Browse files Browse the repository at this point in the history
  • Loading branch information
svenrademakers committed May 31, 2024
1 parent 1e50841 commit a694ef1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/turing_pi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub fn setup_initramfs() -> anyhow::Result<()> {

match result {
// Ignore EBUSY, which indicates that the mountpoint is already mounted.
Err(errno) if errno == Errno::EBUSY => (),
Err(Errno::EBUSY) => (),
r => r?,
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/ubi/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ where
// Begin ubinizing volumes
let mut ubinizer = Ubinizer::new(volumes, eb_size);
let vid_size = layout.bytes_per_page;
let mut data = Vec::with_capacity(u32::try_from(eb_size).unwrap() as usize + vid_size);
let mut data = Vec::with_capacity(u32::from(eb_size) as usize + vid_size);
data.resize(vid_size, 0u8);

// Iterate over all logical blocks provided by the Ubinizer
Expand Down

0 comments on commit a694ef1

Please sign in to comment.