Skip to content

Commit

Permalink
new format for imports
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Aug 4, 2024
1 parent 387d985 commit f09b535
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 22 deletions.
4 changes: 3 additions & 1 deletion steps/39/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use super::*;
use frame::{prelude::*, primitives::BlakeTwo256, traits::Hash};
use frame::prelude::*;
use frame::primitives::BlakeTwo256;
use frame::traits::Hash;

// Learn about internal functions.
impl<T: Config> Pallet<T> {
Expand Down
3 changes: 2 additions & 1 deletion steps/39/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub use pallet::*;
#[frame::pallet(dev_mode)]
pub mod pallet {
use super::*;
use frame::traits::fungible::{Inspect, Mutate};
use frame::traits::fungible::Inspect;
use frame::traits::fungible::Mutate;

#[pallet::pallet]
pub struct Pallet<T>(core::marker::PhantomData<T>);
Expand Down
4 changes: 3 additions & 1 deletion steps/40/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use super::*;
use frame::{prelude::*, primitives::BlakeTwo256, traits::Hash};
use frame::prelude::*;
use frame::primitives::BlakeTwo256;
use frame::traits::Hash;

// Learn about internal functions.
impl<T: Config> Pallet<T> {
Expand Down
3 changes: 2 additions & 1 deletion steps/40/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub use pallet::*;
#[frame::pallet(dev_mode)]
pub mod pallet {
use super::*;
use frame::traits::fungible::{Inspect, Mutate};
use frame::traits::fungible::Inspect;
use frame::traits::fungible::Mutate;

#[pallet::pallet]
pub struct Pallet<T>(core::marker::PhantomData<T>);
Expand Down
4 changes: 3 additions & 1 deletion steps/41/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use super::*;
use frame::{prelude::*, primitives::BlakeTwo256, traits::Hash};
use frame::prelude::*;
use frame::primitives::BlakeTwo256;
use frame::traits::Hash;

// Learn about internal functions.
impl<T: Config> Pallet<T> {
Expand Down
3 changes: 2 additions & 1 deletion steps/41/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub use pallet::*;
#[frame::pallet(dev_mode)]
pub mod pallet {
use super::*;
use frame::traits::fungible::{Inspect, Mutate};
use frame::traits::fungible::Inspect;
use frame::traits::fungible::Mutate;

#[pallet::pallet]
pub struct Pallet<T>(core::marker::PhantomData<T>);
Expand Down
4 changes: 3 additions & 1 deletion steps/42/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use super::*;
use frame::{prelude::*, primitives::BlakeTwo256, traits::Hash};
use frame::prelude::*;
use frame::primitives::BlakeTwo256;
use frame::traits::Hash;

// Learn about internal functions.
impl<T: Config> Pallet<T> {
Expand Down
3 changes: 2 additions & 1 deletion steps/42/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub use pallet::*;
#[frame::pallet(dev_mode)]
pub mod pallet {
use super::*;
use frame::traits::fungible::{Inspect, Mutate};
use frame::traits::fungible::Inspect;
use frame::traits::fungible::Mutate;

#[pallet::pallet]
pub struct Pallet<T>(core::marker::PhantomData<T>);
Expand Down
4 changes: 3 additions & 1 deletion steps/43/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use super::*;
use frame::{prelude::*, primitives::BlakeTwo256, traits::Hash};
use frame::prelude::*;
use frame::primitives::BlakeTwo256;
use frame::traits::Hash;

// Learn about internal functions.
impl<T: Config> Pallet<T> {
Expand Down
3 changes: 2 additions & 1 deletion steps/43/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub use pallet::*;
#[frame::pallet(dev_mode)]
pub mod pallet {
use super::*;
use frame::traits::fungible::{Inspect, Mutate};
use frame::traits::fungible::Inspect;
use frame::traits::fungible::Mutate;

#[pallet::pallet]
pub struct Pallet<T>(core::marker::PhantomData<T>);
Expand Down
4 changes: 3 additions & 1 deletion steps/44/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use super::*;
use frame::{prelude::*, primitives::BlakeTwo256, traits::Hash};
use frame::prelude::*;
use frame::primitives::BlakeTwo256;
use frame::traits::Hash;

// Learn about internal functions.
impl<T: Config> Pallet<T> {
Expand Down
3 changes: 2 additions & 1 deletion steps/44/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub use pallet::*;
#[frame::pallet(dev_mode)]
pub mod pallet {
use super::*;
use frame::traits::fungible::{Inspect, Mutate};
use frame::traits::fungible::Inspect;
use frame::traits::fungible::Mutate;

#[pallet::pallet]
pub struct Pallet<T>(core::marker::PhantomData<T>);
Expand Down
4 changes: 3 additions & 1 deletion steps/45/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use super::*;
use frame::{prelude::*, primitives::BlakeTwo256, traits::Hash};
use frame::prelude::*;
use frame::primitives::BlakeTwo256;
use frame::traits::Hash;

// Learn about internal functions.
impl<T: Config> Pallet<T> {
Expand Down
3 changes: 2 additions & 1 deletion steps/45/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub use pallet::*;
#[frame::pallet(dev_mode)]
pub mod pallet {
use super::*;
use frame::traits::fungible::{Inspect, Mutate};
use frame::traits::fungible::Inspect;
use frame::traits::fungible::Mutate;

#[pallet::pallet]
pub struct Pallet<T>(core::marker::PhantomData<T>);
Expand Down
4 changes: 3 additions & 1 deletion steps/46/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use super::*;
use frame::{prelude::*, primitives::BlakeTwo256, traits::Hash};
use frame::prelude::*;
use frame::primitives::BlakeTwo256;
use frame::traits::Hash;

// Learn about internal functions.
impl<T: Config> Pallet<T> {
Expand Down
3 changes: 2 additions & 1 deletion steps/46/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub use pallet::*;
#[frame::pallet(dev_mode)]
pub mod pallet {
use super::*;
use frame::traits::fungible::{Inspect, Mutate};
use frame::traits::fungible::Inspect;
use frame::traits::fungible::Mutate;

#[pallet::pallet]
pub struct Pallet<T>(core::marker::PhantomData<T>);
Expand Down
9 changes: 4 additions & 5 deletions steps/47/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use super::*;
use frame::{
prelude::*,
primitives::BlakeTwo256,
traits::{fungible::Mutate, Hash},
};
use frame::prelude::*;
use frame::primitives::BlakeTwo256;
use frame::traits::fungible::Mutate;
use frame::traits::Hash;

// Learn about internal functions.
impl<T: Config> Pallet<T> {
Expand Down
3 changes: 2 additions & 1 deletion steps/47/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub use pallet::*;
#[frame::pallet(dev_mode)]
pub mod pallet {
use super::*;
use frame::traits::fungible::{Inspect, Mutate};
use frame::traits::fungible::Inspect;
use frame::traits::fungible::Mutate;

#[pallet::pallet]
pub struct Pallet<T>(core::marker::PhantomData<T>);
Expand Down

0 comments on commit f09b535

Please sign in to comment.