File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ guarded_string!(
84
84
) ;
85
85
86
86
impl StacksMessageCodec for ClarityName {
87
+ #[ allow( clippy:: needless_as_bytes) ] // as_bytes isn't necessary, but verbosity is preferable in the codec impls
87
88
fn consensus_serialize < W : Write > ( & self , fd : & mut W ) -> Result < ( ) , codec_error > {
88
89
// ClarityName can't be longer than vm::representations::MAX_STRING_LEN, which itself is
89
90
// a u8, so we should be good here.
@@ -124,6 +125,7 @@ impl StacksMessageCodec for ClarityName {
124
125
}
125
126
126
127
impl StacksMessageCodec for ContractName {
128
+ #[ allow( clippy:: needless_as_bytes) ] // as_bytes isn't necessary, but verbosity is preferable in the codec impls
127
129
fn consensus_serialize < W : Write > ( & self , fd : & mut W ) -> Result < ( ) , codec_error > {
128
130
if self . as_bytes ( ) . len ( ) < CONTRACT_MIN_NAME_LENGTH
129
131
|| self . as_bytes ( ) . len ( ) > CONTRACT_MAX_NAME_LENGTH
You can’t perform that action at this time.
0 commit comments