expose the fields of Dust type to public (#14388)

This commit is contained in:
wangjj9219
2023-06-18 17:14:08 +08:00
committed by GitHub
parent 4652eaeef8
commit d8b18417a0
2 changed files with 2 additions and 2 deletions
@@ -109,7 +109,7 @@ pub trait Inspect<AccountId>: Sized {
/// Special dust type which can be type-safely converted into a `Credit`.
#[must_use]
pub struct Dust<A, T: Inspect<A>>(pub(crate) T::Balance);
pub struct Dust<A, T: Inspect<A>>(pub T::Balance);
impl<A, T: Balanced<A>> Dust<A, T> {
/// Convert `Dust` into an instance of `Credit`.
@@ -121,7 +121,7 @@ pub trait Inspect<AccountId>: Sized {
/// Special dust type which can be type-safely converted into a `Credit`.
#[must_use]
pub struct Dust<A, T: Unbalanced<A>>(pub(crate) T::AssetId, pub(crate) T::Balance);
pub struct Dust<A, T: Unbalanced<A>>(pub T::AssetId, pub T::Balance);
impl<A, T: Balanced<A>> Dust<A, T> {
/// Convert `Dust` into an instance of `Credit`.