We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faa58fa commit 57d7207Copy full SHA for 57d7207
src/config.rs
@@ -63,10 +63,7 @@ impl Config {
63
let max_concurrent_checks =
64
match rlimit::increase_nofile_limit(u64::MAX) {
65
Ok(lim) => {
66
- #[cfg(target_pointer_width = "32")]
67
- let lim = cast::usize(lim).unwrap_or(usize::MAX);
68
- #[cfg(not(target_pointer_width = "32"))]
69
- let lim = cast::usize(lim);
+ let lim = usize::try_from(lim).unwrap_or(usize::MAX);
70
71
if raw_config.max_concurrent_checks > lim {
72
log::warn!(
0 commit comments