Skip to content

Commit

Permalink
Make clippy happier
Browse files Browse the repository at this point in the history
  • Loading branch information
andor0 committed Jan 11, 2022
1 parent fd57666 commit e914ce9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frame/dutch-auction/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ pub mod pallet {
}

/// adds take to list, does not execute take immediately
#[pallet::weight(T::WeightInfo::take(42))] // FIXME: need to use correct a value instead of 42
#[pallet::weight(T::WeightInfo::take(42))] // FIXME: need to update benchmark and weight for this extrinsic
pub fn take(
origin: OriginFor<T>,
order_id: T::OrderId,
Expand Down
1 change: 1 addition & 0 deletions frame/dutch-auction/src/weights.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(unused_parens, unused_imports, clippy::unnecessary_cast)]
use frame_support::{pallet_prelude::Weight, traits::Get, weights::constants::RocksDbWeight};
use sp_std::marker::PhantomData;

Expand Down
2 changes: 1 addition & 1 deletion frame/lending/src/mocks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ impl pallet_dutch_auction::weights::WeightInfo for DutchAuctionsMocks {
0
}

fn take() -> frame_support::dispatch::Weight {
fn take(_x: u32) -> frame_support::dispatch::Weight {
0
}

Expand Down

0 comments on commit e914ce9

Please sign in to comment.