Skip to content

Commit

Permalink
#393: fix clippy warning as suggested by @romac
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-kuprianov committed Jul 27, 2020
1 parent 17b6277 commit ebe13a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tendermint-testgen/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Generator<block::Header> for Header {
version: block::header::Version { block: 0, app: 0 },
chain_id,
height: block::Height(self.height.unwrap_or(1)),
time: self.time.unwrap_or_else(|| Time::now()),
time: self.time.unwrap_or_else(Time::now),
last_block_id: None,
last_commit_hash: None,
data_hash: None,
Expand Down

0 comments on commit ebe13a0

Please sign in to comment.