Removed unnecessary conversion (unix specific)
@@ -78,8 +78,5 @@ fn getrlimit(resource: RlimitResource) -> Result<u64, DiagnosticError> {
let retcode = unsafe { libc::getrlimit(resource, &mut limits as *mut rlimit) };
nix::errno::Errno::result(retcode).map_err(DiagnosticError::UnixError)?;
- Ok(limits
- .rlim_cur
- .try_into()
- .expect("rlim always converts to a u64"))
+ Ok(limits.rlim_cur.expect("rlim always converts to a u64"))
}
