Skip to content

Commit

Permalink
second pass and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Krayt78 committed Dec 14, 2024
1 parent ca063b7 commit 7d449e8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion substrate/frame/recovery/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use super::*;

use crate::Pallet;
use alloc::{boxed::Box, vec, vec::Vec};
use frame::{traits::Currency, benchmarking::prelude::*};
use frame::{benchmarking::prelude::*, traits::Currency};

const SEED: u32 = 0;
const DEFAULT_DELAY: u32 = 0;
Expand Down
6 changes: 5 additions & 1 deletion substrate/frame/recovery/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ use alloc::{boxed::Box, vec::Vec};
use codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;

use frame::{prelude::*, arithmetic::ArithmeticError,traits::{ReservableCurrency,Currency,BalanceStatus}};
use frame::{
arithmetic::ArithmeticError,
prelude::*,
traits::{BalanceStatus, Currency, ReservableCurrency},
};

pub use pallet::*;
pub use weights::WeightInfo;
Expand Down
5 changes: 2 additions & 3 deletions substrate/frame/recovery/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
//! Test utilities
use super::*;

use crate as recovery;
use frame::testing_prelude::*;
use frame::{deps::sp_io, testing_prelude::*};

type Block = frame_system::mocking::MockBlock<Test>;

frame_support::construct_runtime!(
construct_runtime!(
pub enum Test
{
System: frame_system,
Expand Down
4 changes: 2 additions & 2 deletions substrate/frame/recovery/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
use super::*;

use frame::testing_prelude::*;
use mock::{
use crate::mock::{
new_test_ext, run_to_block, Balances, BalancesCall, MaxFriends, Recovery, RecoveryCall,
RuntimeCall, RuntimeOrigin, Test,
};
use frame::{testing_prelude::*, traits::BadOrigin};

#[test]
fn basic_setup_works() {
Expand Down
2 changes: 2 additions & 0 deletions substrate/frame/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ pub mod testing_prelude {
pub use sp_io::TestExternalities;

pub use sp_io::TestExternalities as TestState;

pub use sp_runtime::bounded_vec;
}

/// All of the types and tools needed to build FRAME-based runtimes.
Expand Down

0 comments on commit 7d449e8

Please sign in to comment.