https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/merge_requests/108 error[E0277]: the trait bound `i32: From` is not satisfied --> cargo-crates/pipewire-0.4.1/src/loop_.rs:414:50 | 414 | tv_nsec: duration.subsec_nanos().into(), | ^^^^ the trait `From` is not implemented for `i32` | = help: the following implementations were found: > > > > and 3 others = note: required because of the requirements on the impl of `Into` for `u32` --- cargo-crates/pipewire-0.4.1/src/loop_.rs.orig 1973-11-29 21:33:09 UTC +++ cargo-crates/pipewire-0.4.1/src/loop_.rs @@ -411,7 +411,7 @@ where fn duration_to_timespec(duration: Duration) -> spa_sys::timespec { spa_sys::timespec { tv_sec: duration.as_secs().try_into().expect("Duration too long"), - tv_nsec: duration.subsec_nanos().into(), + tv_nsec: duration.subsec_nanos() as libc::c_long, } }