error[E0308]: mismatched types
--> /wrkdirs/usr/ports/shells/starship/work/starship-1.11.0/cargo-crates/systemstat-0.2.1/src/platform/freebsd.rs:114:54
|
114 | ... let ts = OffsetDateTime::from_unix_timestamp(data.tv_sec).expect("unix timestamp should be within range") + Duration::from_nanos(da...
| ----------------------------------- ^^^^^^^^^^^ expected `i64`, found `i32`
| |
| arguments to this function are incorrect
|
note: associated function defined here
--> /wrkdirs/usr/ports/shells/starship/work/starship-1.11.0/cargo-crates/time-0.3.14/src/offset_date_time.rs:208:18
|
208 | pub const fn from_unix_timestamp(timestamp: i64) -> Result<Self, error::ComponentRange> {
| ^^^^^^^^^^^^^^^^^^^
help: you can convert an `i32` to an `i64`
|
114 | let ts = OffsetDateTime::from_unix_timestamp(data.tv_sec.into()).expect("unix timestamp should be within range") + Duration::from_nanos(data.tv_usec as u64);
|