From 6a7956b45e06e14d980738077e478459e2c1b7a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= <bkchr@users.noreply.github.com> Date: Tue, 1 Oct 2019 10:46:54 +0200 Subject: [PATCH] Enable `substrate-session` `std` feature and remove unused traits (#456) --- polkadot/runtime/Cargo.toml | 1 + polkadot/runtime/src/lib.rs | 1 - polkadot/runtime/src/slots.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot/runtime/Cargo.toml b/polkadot/runtime/Cargo.toml index 23ce79884f4..4367f830921 100644 --- a/polkadot/runtime/Cargo.toml +++ b/polkadot/runtime/Cargo.toml @@ -110,4 +110,5 @@ std = [ "safe-mix/std", "babe/std", "babe-primitives/std", + "substrate-session/std", ] diff --git a/polkadot/runtime/src/lib.rs b/polkadot/runtime/src/lib.rs index b0cd30c68c8..ab2bd878a29 100644 --- a/polkadot/runtime/src/lib.rs +++ b/polkadot/runtime/src/lib.rs @@ -67,7 +67,6 @@ pub use timestamp::Call as TimestampCall; pub use balances::Call as BalancesCall; pub use attestations::{Call as AttestationsCall, MORE_ATTESTATIONS_IDENTIFIER}; pub use parachains::{Call as ParachainsCall, NEW_HEADS_IDENTIFIER}; -pub use srml_support::StorageValue; /// Implementations of some helper traits passed into runtime modules as associated types. pub mod impls; diff --git a/polkadot/runtime/src/slots.rs b/polkadot/runtime/src/slots.rs index b1b3ee25336..a145ff159c0 100644 --- a/polkadot/runtime/src/slots.rs +++ b/polkadot/runtime/src/slots.rs @@ -23,7 +23,7 @@ use sr_primitives::traits::{CheckedSub, StaticLookup, Zero, One, CheckedConversi use sr_primitives::weights::SimpleDispatchInfo; use codec::{Encode, Decode}; use srml_support::{ - decl_module, decl_storage, decl_event, StorageMap, ensure, + decl_module, decl_storage, decl_event, ensure, traits::{Currency, ReservableCurrency, WithdrawReason, ExistenceRequirement, Get}, }; use primitives::parachain::AccountIdConversion; -- GitLab