diff --git a/src/lib.rs b/src/lib.rs index 72f7b0f..f2b0b23 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -105,7 +105,7 @@ pub fn raise_fd_limit() -> Option { panic!("raise_fd_limit: error calling setrlimit: {}", err); } - Some(rlim.rlim_cur) + Some(rlim.rlim_cur.into()) } }