Skip to content

Commit

Permalink
fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
apopiak committed May 28, 2022
1 parent a032a47 commit fa97751
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions traits/src/currency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ pub trait OnNewAccount<AccountId, CurrencyId> {
fn on_new_account(who: &AccountId, currency_id: CurrencyId);
}

impl<AccountId, CurrencyId, Balance> OnDust<AccountId, CurrencyId> for () {
impl<AccountId, CurrencyId> OnNewAccount<AccountId, CurrencyId> for () {
fn on_new_account(_: &AccountId, _: CurrencyId) {}
}

Expand All @@ -657,7 +657,7 @@ pub trait OnKilledAccount<AccountId, CurrencyId> {
fn on_killed_account(who: &AccountId, currency_id: CurrencyId);
}

impl<AccountId, CurrencyId, Balance> OnDust<AccountId, CurrencyId> for () {
impl<AccountId, CurrencyId> OnKilledAccount<AccountId, CurrencyId> for () {
fn on_killed_account(_: &AccountId, _: CurrencyId) {}
}

Expand Down
2 changes: 1 addition & 1 deletion traits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub use auction::{Auction, AuctionHandler, AuctionInfo, OnNewBidResult};
pub use currency::{
BalanceStatus, BasicCurrency, BasicCurrencyExtended, BasicLockableCurrency, BasicReservableCurrency,
LockIdentifier, MultiCurrency, MultiCurrencyExtended, MultiLockableCurrency, MultiReservableCurrency,
NamedBasicReservableCurrency, NamedMultiReservableCurrency, OnDust,
NamedBasicReservableCurrency, NamedMultiReservableCurrency, OnDust, OnNewAccount, OnKilledAccount,
};
pub use data_provider::{DataFeeder, DataProvider, DataProviderExtended};
pub use get_by_key::GetByKey;
Expand Down

0 comments on commit fa97751

Please sign in to comment.