Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix two minor warnings (#6650)
Browse files Browse the repository at this point in the history
* Unused import in no_std builds
* Global attribute in non-root of a crate
  • Loading branch information
athei authored Jul 14, 2020
1 parent 7e7c576 commit 932f3bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions frame/babe/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

//! Benchmarks for the BABE Pallet.
#![cfg_attr(not(feature = "std"), no_std)]

use super::*;
use frame_benchmarking::benchmarks;

Expand Down
2 changes: 1 addition & 1 deletion primitives/finality-grandpa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 932f3bd

Please sign in to comment.