You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ cargo build Compiling libc v0.2.58
Compiling rlimit v0.1.0
error[E0308]: mismatched types--> /home/stefano/.cargo/registry/src/github.com-1ecc6299db9ec823/rlimit-0.1.0/src/lib.rs:50:45
|50| let code = unsafe { libc::setrlimit(resource, &mut limit as *mut libc::rlimit) };
| ^^^^^^^^expected u32, found i32help: you can convert an `i32` to `u32` and panic if the converted value wouldn't fit
|50| let code = unsafe { libc::setrlimit(resource.try_into().unwrap(), &mut limit as *mut libc::rlimit) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^error[E0308]: mismatched types--> /home/stefano/.cargo/registry/src/github.com-1ecc6299db9ec823/rlimit-0.1.0/src/lib.rs:61:45
|61| let code = unsafe { libc::getrlimit(resource, &mut limit as *mut libc::rlimit) };
| ^^^^^^^^expected u32, found i32help: you can convert an `i32` to `u32` and panic if the converted value wouldn't fit
|61| let code = unsafe { libc::getrlimit(resource.try_into().unwrap(), &mut limit as *mut libc::rlimit) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^error: aborting due to 2 previous errorsFor more information about this error, try `rustc --explain E0308`.error: Could not compile `rlimit`.
To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered:
Hi!
It seems this crate fails to build. To reproduce just create a new "hello world" project, at this dependency to Cargo.toml, and try to build.
Versions:
The text was updated successfully, but these errors were encountered: