From d8b18417a0107caf379da1463e61cd35b973d406 Mon Sep 17 00:00:00 2001 From: wangjj9219 <183318287@qq.com> Date: Sun, 18 Jun 2023 17:14:08 +0800 Subject: [PATCH] expose the fields of Dust type to public (#14388) --- substrate/frame/support/src/traits/tokens/fungible/regular.rs | 2 +- substrate/frame/support/src/traits/tokens/fungibles/regular.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/frame/support/src/traits/tokens/fungible/regular.rs b/substrate/frame/support/src/traits/tokens/fungible/regular.rs index c0658ad71d..2838bed540 100644 --- a/substrate/frame/support/src/traits/tokens/fungible/regular.rs +++ b/substrate/frame/support/src/traits/tokens/fungible/regular.rs @@ -109,7 +109,7 @@ pub trait Inspect: Sized { /// Special dust type which can be type-safely converted into a `Credit`. #[must_use] -pub struct Dust>(pub(crate) T::Balance); +pub struct Dust>(pub T::Balance); impl> Dust { /// Convert `Dust` into an instance of `Credit`. diff --git a/substrate/frame/support/src/traits/tokens/fungibles/regular.rs b/substrate/frame/support/src/traits/tokens/fungibles/regular.rs index 47474eb112..089dc38ad6 100644 --- a/substrate/frame/support/src/traits/tokens/fungibles/regular.rs +++ b/substrate/frame/support/src/traits/tokens/fungibles/regular.rs @@ -121,7 +121,7 @@ pub trait Inspect: Sized { /// Special dust type which can be type-safely converted into a `Credit`. #[must_use] -pub struct Dust>(pub(crate) T::AssetId, pub(crate) T::Balance); +pub struct Dust>(pub T::AssetId, pub T::Balance); impl> Dust { /// Convert `Dust` into an instance of `Credit`.