diff --git a/clarity/src/vm/representations.rs b/clarity/src/vm/representations.rs index 0f779b479f..7e5423b850 100644 --- a/clarity/src/vm/representations.rs +++ b/clarity/src/vm/representations.rs @@ -84,6 +84,7 @@ guarded_string!( ); impl StacksMessageCodec for ClarityName { + #[allow(clippy::needless_as_bytes)] // as_bytes isn't necessary, but verbosity is preferable in the codec impls fn consensus_serialize(&self, fd: &mut W) -> Result<(), codec_error> { // ClarityName can't be longer than vm::representations::MAX_STRING_LEN, which itself is // a u8, so we should be good here. @@ -124,6 +125,7 @@ impl StacksMessageCodec for ClarityName { } impl StacksMessageCodec for ContractName { + #[allow(clippy::needless_as_bytes)] // as_bytes isn't necessary, but verbosity is preferable in the codec impls fn consensus_serialize(&self, fd: &mut W) -> Result<(), codec_error> { if self.as_bytes().len() < CONTRACT_MIN_NAME_LENGTH || self.as_bytes().len() > CONTRACT_MAX_NAME_LENGTH