Skip to content

Commit df4eee0

Browse files
committed
f - drop unnecessary derives
1 parent 1f882c3 commit df4eee0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/util/ser.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,7 @@ impl Readable for BigSize {
400400
/// In TLV we occasionally send fields which only consist of, or potentially end with, a
401401
/// variable-length integer which is simply truncated by skipping high zero bytes. This type
402402
/// encapsulates such integers implementing Readable/Writeable for them.
403-
#[cfg_attr(test, derive(PartialEq))]
404-
#[derive(Clone, Debug)]
403+
#[cfg_attr(test, derive(PartialEq, Debug))]
405404
pub(crate) struct HighZeroBytesDroppedBigSize<T>(pub T);
406405

407406
macro_rules! impl_writeable_primitive {
@@ -536,7 +535,6 @@ impl_array!(1300); // for OnionPacket.hop_data
536535

537536
/// For variable-length values within TLV record where the length is encoded as part of the record.
538537
/// Used to prevent encoding the length twice.
539-
#[derive(Clone, Debug, PartialEq)]
540538
pub(crate) struct WithoutLength<T>(pub T);
541539

542540
impl Writeable for WithoutLength<String> {

0 commit comments

Comments
 (0)