heim icon indicating copy to clipboard operation
heim copied to clipboard

error when compiling heim-net under Ubuntu 18.04 and 20.04

Open leontiad opened this issue 3 years ago • 0 comments

It seems that there is an error in a dependency to heim when trying to compile heim-net, complaining for a not implemented Error train coming from testdir crate:

Compiling heim-net v0.1.0-beta.2
 Compiling tofnd v0.9.1 (/home/tofnd)
error[E0277]: `?` couldn't convert the error to `heim_common::Error`
--> /home/.cargo/registry/src/github.com-1ecc6299db9ec823/heim-net-0.1.0-beta.2/src/sys/unix/nic.rs:66:37
 |
66 |     let iter = ifaddrs::getifaddrs()?.filter_map(|addr| {
 |                                     ^ the trait `From<nix::Error>` is not implemented for `heim_common::Error`
 |
 = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
 = help: the following implementations were found:
           <heim_common::Error as From<Infallible>>
           <heim_common::Error as From<NulError>>
           <heim_common::Error as From<ParseFloatError>>
           <heim_common::Error as From<ParseIntError>>
         and 2 others
 = note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, nix::Error>>` for `std::result::Result<_, heim_common::Error>`

For more information about this error, try `rustc --explain E0277`.

leontiad avatar Feb 07 '22 14:02 leontiad