messense / if-addrs

Retrieve IP addresses for all interfaces. POSIX & Windows
BSD 3-Clause "New" or "Revised" License
22 stars 15 forks source link

Build issues since v0.13 on arm #41

Open svenstaro opened 5 days ago

svenstaro commented 5 days ago

On rust 1.80 arm-unknown-linux I get this failure since 0.13:

 error[E0277]: the trait bound `i32: From<u32>` is not satisfied
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/if-addrs-0.13.0/src/posix_not_mac.rs:75:50
   |
75 |                 tv_usec: timeout.subsec_micros().into(),
   |                                                  ^^^^ the trait `From<u32>` is not implemented for `i32`, which is required by `u32: Into<_>`
   |
   = help: the following other types implement trait `From<T>`:
             <i32 as From<bool>>
             <i32 as From<i16>>
             <i32 as From<i8>>
             <i32 as From<u16>>
             <i32 as From<u8>>
   = note: required for `u32` to implement `Into<i32>`
svenstaro commented 5 days ago

Build log here: https://github.com/svenstaro/miniserve/actions/runs/9778254160/job/26994671116?pr=1439