mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +00:00
Fix two minor warnings (#6650)
* Unused import in no_std builds * Global attribute in non-root of a crate
This commit is contained in:
committed by
GitHub
parent
4613dc2af4
commit
c802d425d9
@@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
//! Benchmarks for the BABE Pallet.
|
//! Benchmarks for the BABE Pallet.
|
||||||
|
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use frame_benchmarking::benchmarks;
|
use frame_benchmarking::benchmarks;
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ use sp_std::borrow::Cow;
|
|||||||
use sp_std::vec::Vec;
|
use sp_std::vec::Vec;
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
use sp_core::traits::BareCryptoStorePtr;
|
use sp_core::traits::BareCryptoStorePtr;
|
||||||
use sp_std::convert::TryInto;
|
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
use log::debug;
|
use log::debug;
|
||||||
@@ -385,6 +384,7 @@ where
|
|||||||
{
|
{
|
||||||
use sp_core::crypto::Public;
|
use sp_core::crypto::Public;
|
||||||
use sp_application_crypto::AppKey;
|
use sp_application_crypto::AppKey;
|
||||||
|
use sp_std::convert::TryInto;
|
||||||
|
|
||||||
let encoded = localized_payload(round, set_id, &message);
|
let encoded = localized_payload(round, set_id, &message);
|
||||||
let signature = keystore.read()
|
let signature = keystore.read()
|
||||||
|
|||||||
Reference in New Issue
Block a user