Skip to content

Commit

Permalink
Fix clippy again
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Sep 17, 2019
1 parent 06f20e2 commit 5b48fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ fn main() {
let entries = &mut entries[..count as usize];
for entry in entries {
raw_path = entry.path;
let endpos = raw_path.iter().position(|v| *v == 0).unwrap_or(raw_path.len());
let endpos = raw_path.iter().position(|v| *v == 0).unwrap_or_else(|| raw_path.len());
if endpos > 0x300 - 16 {
error!("Path too big in /bin.");
continue;
Expand Down Expand Up @@ -209,4 +209,4 @@ capabilities!(CAPABILITIES = Capabilities {
sunrise_libuser::syscalls::nr::StartProcess,
],
raw_caps: [sunrise_libuser::caps::ioport(0x60), sunrise_libuser::caps::ioport(0x64), sunrise_libuser::caps::irq_pair(1, 0x3FF)]
});
});

0 comments on commit 5b48fde

Please sign in to comment.