Fix deprecated warning on solana-sdk (#29109)

This commit is contained in:
acheron 2023-01-07 07:48:10 +01:00 committed by GitHub
parent e0d2a40d85
commit e92f93c290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -257,7 +257,9 @@ impl fmt::Display for GenesisConfig {
Native instruction processors: {:#?}\n\
Rewards pool: {:#?}\n\
",
Utc.timestamp(self.creation_time, 0).to_rfc3339(),
Utc.timestamp_opt(self.creation_time, 0)
.unwrap()
.to_rfc3339(),
self.cluster_type,
self.hash(),
compute_shred_version(&self.hash(), None),