Skip to content

Commit

Permalink
Review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtcollins committed Jun 14, 2019
1 parent 517a477 commit 35dd1ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/diskio/threaded.rs
Expand Up @@ -129,6 +129,8 @@ impl<'a> Executor for Threaded<'a> {
println!("{} deferred IO operations", prev_files);
}
let buf: Vec<u8> = vec![0; prev_files];
// Cheap wrap-around correctness check - we have 20k files, more than
// 32K means we subtracted from 0 somewhere.
assert!(32767 > prev_files);
let mut current_files = prev_files;
while current_files != 0 {
Expand Down
3 changes: 2 additions & 1 deletion src/dist/component/package.rs
Expand Up @@ -398,7 +398,8 @@ fn unpack_without_first_dir<'a, R: Read>(
}
}
} else {
unreachable!();
// We should never see a path with no parent.
panic!();
}
};

Expand Down

0 comments on commit 35dd1ed

Please sign in to comment.