Do not assume AssetIds are Copy (companion for substrate#14158) (#2586)

* Do not assume `AssetId`s are `Copy`

* update lockfile for {"substrate", "polkadot"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Kouteandparity-processbot authored and GitHub committed 2023-05-23 12:09:45 +00:00
1 parent 175643f6ab
commit 0c7ce723ad
4 files changed
+209 -208

No files matched your search

+2 -2
View File
@@ -91,7 +91,7 @@ where
Assets: fungibles::Inspect<AccountId>,
{
fn contains(id: &<Assets as fungibles::Inspect<AccountId>>::AssetId) -> bool {
!Assets::total_issuance(*id).is_zero()
!Assets::total_issuance(id.clone()).is_zero()
}
}
@@ -103,7 +103,7 @@ where
Assets: fungibles::Inspect<AccountId>,
{
fn contains(id: &<Assets as fungibles::Inspect<AccountId>>::AssetId) -> bool {
Assets::asset_exists(*id)
Assets::asset_exists(id.clone())
}
}