From ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65 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) --- frame/support/src/traits/tokens/fungible/regular.rs | 2 +- frame/support/src/traits/tokens/fungibles/regular.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frame/support/src/traits/tokens/fungible/regular.rs b/frame/support/src/traits/tokens/fungible/regular.rs index 5a201b33b7..7dfb1480fb 100644 --- a/frame/support/src/traits/tokens/fungible/regular.rs +++ b/frame/support/src/traits/tokens/fungible/regular.rs @@ -108,7 +108,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/frame/support/src/traits/tokens/fungibles/regular.rs b/frame/support/src/traits/tokens/fungibles/regular.rs index 27d1a50b34..e050986681 100644 --- a/frame/support/src/traits/tokens/fungibles/regular.rs +++ b/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`.