Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Fix build error on rust 1.27 #314

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exe-common/src/parse_genesis_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::io::Read;
use serde_json;
use cardano::{config, fee, block, coin, redeem};
use base64;
use std::time::{Duration, SystemTime};
use std::time::{Duration, SystemTime, UNIX_EPOCH};

use genesisdata::raw;

Expand Down Expand Up @@ -33,7 +33,7 @@ pub fn parse_genesis_data<R: Read>(json: R) -> config::GenesisData { // FIXME: u
};
let start_time = {
let unix_displacement = Duration::from_secs(data.startTime);
SystemTime::UNIX_EPOCH + unix_displacement
UNIX_EPOCH + unix_displacement
};

config::GenesisData {
Expand Down