-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Remove the Copy bound on AssetId
#14158
Remove the Copy bound on AssetId
#14158
Conversation
melekes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Copy bound on the AssetId traitCopy bound on AssetId
|
bot rebase |
|
Rebased |
ggwpez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not comment all instances of where an impl Emcode is enough.
|
@ggwpez I did remove some more unnecessary Would be nice if we had a custom clippy lint for this. When you're mechanically changing dozens/hundreds of these at a time it's hard to make sure that all of the |
|
(Just an FYI, even though the CI was green and I could have merged this PR I've pushed a merge commit with the current |
|
bot merge |
|
Error: Github API says paritytech/cumulus#2586 is not mergeable |
|
bot merge |
* Remove the `Copy` bound on `AssetId` * Also relax the `Copy` bound in the assets pallet * Fix warnings on the newest nightly Rust * Remove some unnecessary `clone()`s * Try to satisfy clippy * Remove some more unnecessary `clone()`s * Add more `.clone()`s for newly merged code * Also add `clone()`s in the benchmarks --------- Co-authored-by: parity-processbot <>
|
This pull request has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/polkadot-release-analysis-v0-9-43/3158/3 |
* Remove the `Copy` bound on `AssetId` * Also relax the `Copy` bound in the assets pallet * Fix warnings on the newest nightly Rust * Remove some unnecessary `clone()`s * Try to satisfy clippy * Remove some more unnecessary `clone()`s * Add more `.clone()`s for newly merged code * Also add `clone()`s in the benchmarks --------- Co-authored-by: parity-processbot <>
* Remove the `Copy` bound on `AssetId` * Also relax the `Copy` bound in the assets pallet * Fix warnings on the newest nightly Rust * Remove some unnecessary `clone()`s * Try to satisfy clippy * Remove some more unnecessary `clone()`s * Add more `.clone()`s for newly merged code * Also add `clone()`s in the benchmarks --------- Co-authored-by: parity-processbot <>
This PR relaxes the requirement for
AssetIds to beCopy; now it only needs to beClone.This is necessary for paritytech/polkadot#7236 (or more specifically, for its cumulus companion)
This is based on the following PR (thanks @gilescope!): #12731
cumulus companion: paritytech/cumulus#2586