From 9c5fcbe152d8c2d8cc98e51e8c39cd2dd492776b Mon Sep 17 00:00:00 2001 From: Liam Aharon Date: Thu, 9 May 2024 18:00:55 +0500 Subject: [PATCH] fmt --- .github/workflows/rust-checks.yaml | 2 +- core/src/inherents/custom_idps/timestamp.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust-checks.yaml b/.github/workflows/rust-checks.yaml index bdac22a413a..9c7a50c0b5c 100644 --- a/.github/workflows/rust-checks.yaml +++ b/.github/workflows/rust-checks.yaml @@ -13,7 +13,7 @@ concurrency: env: RUST_BACKTRACE: 1 # pin nightly to avoid constantly throwing out cache - TOOLCHAIN_LINT: nightly-2023-11-13 + TOOLCHAIN_LINT: nightly-2024-04-09 jobs: doc: diff --git a/core/src/inherents/custom_idps/timestamp.rs b/core/src/inherents/custom_idps/timestamp.rs index 136b363e75f..e9274ed694a 100644 --- a/core/src/inherents/custom_idps/timestamp.rs +++ b/core/src/inherents/custom_idps/timestamp.rs @@ -38,8 +38,7 @@ impl InherentDataProvider { + self.blocktime_millis, ) .timestamp(), - None => sp_timestamp::InherentDataProvider::from_system_time() - .timestamp(), + None => sp_timestamp::InherentDataProvider::from_system_time().timestamp(), } } }