Skip to content
Snippets Groups Projects
Commit c802d425 authored by Alexander Theißen's avatar Alexander Theißen Committed by GitHub
Browse files

Fix two minor warnings (#6650)

* Unused import in no_std builds
* Global attribute in non-root of a crate
parent 4613dc2a
No related merge requests found
......@@ -17,8 +17,6 @@
//! Benchmarks for the BABE Pallet.
#![cfg_attr(not(feature = "std"), no_std)]
use super::*;
use frame_benchmarking::benchmarks;
......
......@@ -31,7 +31,6 @@ use sp_std::borrow::Cow;
use sp_std::vec::Vec;
#[cfg(feature = "std")]
use sp_core::traits::BareCryptoStorePtr;
use sp_std::convert::TryInto;
#[cfg(feature = "std")]
use log::debug;
......@@ -385,6 +384,7 @@ where
{
use sp_core::crypto::Public;
use sp_application_crypto::AppKey;
use sp_std::convert::TryInto;
let encoded = localized_payload(round, set_id, &message);
let signature = keystore.read()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment