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

This commit is contained in:
wangjj9219 authored and GitHub committed 2023-06-18 09:14:08 +00:00
1 parent 4652eaeef8
commit d8b18417a0
2 files changed
+2 -2

No files matched your search

@@ -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`.