Skip to content

Commit

Permalink
format: Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan46 committed Jun 25, 2024
1 parent 0d42dd6 commit 64d86c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions pallets/storage-provider/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ pub use pallet::{Config, Pallet};

#[frame_support::pallet(dev_mode)]
pub mod pallet {
use crate::types::StorageProviderInfo;
use core::fmt::Debug;

use codec::{Decode, Encode};
use core::fmt::Debug;
use frame_support::pallet_prelude::{IsType, StorageMap};
use scale_info::TypeInfo;

use crate::types::StorageProviderInfo;

#[pallet::pallet]
#[pallet::without_storage_info] // Allows to define storage items without fixed size
pub struct Pallet<T>(_);
Expand Down
7 changes: 4 additions & 3 deletions pallets/storage-provider/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use codec::{Decode, Encode};
use scale_info::prelude::string::String;
use scale_info::prelude::vec::Vec;
use scale_info::TypeInfo;
use scale_info::{
prelude::{string::String, vec::Vec},
TypeInfo,
};

/// SectorNumber is a numeric identifier for a sector.
pub type SectorNumber = u64;
Expand Down

0 comments on commit 64d86c2

Please sign in to comment.