Closed MCM-Mike closed 9 months ago
should be fixed #3781
should be fixed #3781
Using this #3781 it seems to be working fine again:
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `from_timestamp_opt()` instead
--> servers/src/mining/mine_block.rs:171:64
|
171 | b.header.timestamp = DateTime::<Utc>::from_utc(NaiveDateTime::from_timestamp(now_sec, 0), Utc);
| ^^^^^^^^^^^^^^
Compiling grin_config v5.2.1-beta.1 (/opt/grin/build/grin/config)
warning: `grin_servers` (lib) generated 6 warnings
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `from_timestamp_opt()` instead
--> src/bin/tui/mining.rs:67:39
|
67 | let naive_datetime = NaiveDateTime::from_timestamp(
| ^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead
--> src/bin/tui/mining.rs:74:43
|
74 | let datetime: DateTime<Utc> = DateTime::from_utc(naive_datetime, Utc);
| ^^^^^^^^
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `from_timestamp_opt()` instead
--> src/bin/tui/mining.rs:129:39
|
129 | let naive_datetime = NaiveDateTime::from_timestamp(self.time as i64, 0);
| ^^^^^^^^^^^^^^
warning: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead
--> src/bin/tui/mining.rs:130:43
|
130 | let datetime: DateTime<Utc> = DateTime::from_utc(naive_datetime, Utc);
| ^^^^^^^^
warning: use of deprecated method `chrono::DateTime::<Tz>::timestamp_nanos`: use `timestamp_nanos_opt()` instead
--> src/bin/tui/status.rs:74:40
|
74 | let start = stat.prev_update_time.timestamp_nanos();
| ^^^^^^^^^^^^^^^
warning: use of deprecated method `chrono::DateTime::<Tz>::timestamp_nanos`: use `timestamp_nanos_opt()` instead
--> src/bin/tui/status.rs:75:27
|
75 | let fin = Utc::now().timestamp_nanos();
| ^^^^^^^^^^^^^^^
warning: `grin` (bin "grin") generated 6 warnings
Finished release [optimized] target(s) in 1m 33s
warning: the following packages contain code that will be rejected by a future version of Rust: cargo-lock v4.0.1, grin_secp256k1zkp v0.7.12, traitobject v0.1.0
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
I am getting errors when compiling the latest
Note: checking out 'v5.2.0'.
version.Rust:
Compiling from v5.2.0