Skip to content

Commit c673da3

Browse files
authored
fix match types warn (#736)
1 parent 9cfcd89 commit c673da3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

xtokens/src/mock/para.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::{Amount, Balance, CurrencyId, CurrencyIdConvert, ParachainXcmRouter};
22
use crate as orml_xtokens;
33

44
use frame_support::{
5-
construct_runtime, match_type, parameter_types,
5+
construct_runtime, match_types, parameter_types,
66
traits::{ConstU128, ConstU32, ConstU64, Everything, Get, Nothing},
77
weights::{constants::WEIGHT_PER_SECOND, Weight},
88
};
@@ -259,7 +259,7 @@ parameter_types! {
259259
pub const MaxAssetsForTransfer: usize = 3;
260260
}
261261

262-
match_type! {
262+
match_types! {
263263
pub type ParentOrParachains: impl Contains<MultiLocation> = {
264264
MultiLocation { parents: 0, interior: X1(Junction::AccountId32 { .. }) } |
265265
MultiLocation { parents: 1, interior: X1(Junction::AccountId32 { .. }) } |

xtokens/src/mock/para_relative_view.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::{Amount, Balance, CurrencyId, CurrencyIdConvert, ParachainXcmRouter};
22
use crate as orml_xtokens;
33

44
use frame_support::{
5-
construct_runtime, match_type, parameter_types,
5+
construct_runtime, match_types, parameter_types,
66
traits::{ConstU128, ConstU32, ConstU64, Everything, Nothing},
77
weights::{constants::WEIGHT_PER_SECOND, Weight},
88
};
@@ -326,7 +326,7 @@ parameter_types! {
326326
pub const MaxAssetsForTransfer: usize = 2;
327327
}
328328

329-
match_type! {
329+
match_types! {
330330
pub type ParentOrParachains: impl Contains<MultiLocation> = {
331331
MultiLocation { parents: 0, interior: X1(Junction::AccountId32 { .. }) } |
332332
MultiLocation { parents: 1, interior: X1(Junction::AccountId32 { .. }) } |

0 commit comments

Comments
 (0)