Skip to content

Commit

Permalink
Derive Clone on EncodableOpaqueLeaf (paritytech#5442)
Browse files Browse the repository at this point in the history
Needed it downstream
  • Loading branch information
nazar-pc authored Aug 24, 2024
1 parent b3c2a25 commit 13d43bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions prdoc/pr_5442.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Derive `Clone` on `EncodableOpaqueLeaf`

doc:
- audience: Runtime Dev
description: |
`Clone` was derived on `EncodableOpaqueLeaf` for convenience of downstream users

crates:
- name: sp-mmr-primitives
bump: patch
2 changes: 1 addition & 1 deletion substrate/primitives/merkle-mountain-range/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl FullLeaf for OpaqueLeaf {
///
/// It is different from [`OpaqueLeaf`], because it does implement `Codec`
/// and the encoding has to match raw `Vec<u8>` encoding.
#[derive(codec::Encode, codec::Decode, RuntimeDebug, PartialEq, Eq, TypeInfo)]
#[derive(codec::Encode, codec::Decode, RuntimeDebug, Clone, PartialEq, Eq, TypeInfo)]
pub struct EncodableOpaqueLeaf(pub Vec<u8>);

impl EncodableOpaqueLeaf {
Expand Down

0 comments on commit 13d43bb

Please sign in to comment.