From 7f710695dcaf9cc30531e2aae99f9e6b1a1f06e2 Mon Sep 17 00:00:00 2001 From: Gary Krause Date: Wed, 4 Sep 2024 10:15:11 -0400 Subject: [PATCH] fix: cargo fmt for docstrings --- .../codec/src/datatypes/non_copy_data_types/seq_inner.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protocols/v2/binary-sv2/no-serde-sv2/codec/src/datatypes/non_copy_data_types/seq_inner.rs b/protocols/v2/binary-sv2/no-serde-sv2/codec/src/datatypes/non_copy_data_types/seq_inner.rs index 873c213103..23c1056c9a 100644 --- a/protocols/v2/binary-sv2/no-serde-sv2/codec/src/datatypes/non_copy_data_types/seq_inner.rs +++ b/protocols/v2/binary-sv2/no-serde-sv2/codec/src/datatypes/non_copy_data_types/seq_inner.rs @@ -96,14 +96,14 @@ impl<'a, T: GetSize> GetSize for Seq0255<'a, T> { } /// Fixed size data sequence up to a length of 65535 -/// +/// /// Byte Length Calculation: /// - For fixed-size T: 2 + LENGTH * size_of::() /// - For variable-length T: 2 + seq.map(|x| x.length()).sum() /// Decsription: 2-byte length L, unsigned little-endian integer 16-bits, followed by a sequence of L elements of type T. Allowed range of length is 0 to 65535. -/// +/// /// Used for listing channel ids, tx short hashes, tx hashes, list indexes, and full transaction data. -/// +/// /// The liftime is here only for type compatibility with serde-sv2 #[derive(Debug, Clone, Eq, PartialEq)] pub struct Seq064K<'a, T>(pub(crate) Vec, PhantomData<&'a T>);