Skip to content

Commit ef80814

Browse files
committed
Ignore clippy useless_conversion
1 parent fbca392 commit ef80814

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

protocols/v2/codec-sv2/src/decoder.rs

+3
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ impl<'a, T: Serialize + GetSize + Deserialize<'a>, B: IsBuffer + AeadBuffer> Wit
216216

217217
// Since the frame length is already validated during the handshake process, this
218218
// operation is infallible
219+
#[allow(clippy::useless_conversion)]
220+
// Clippy is wrong here about the `src.into()` conversion. It is necessary to convert the
221+
// `Vec<u8>` into a `B::Slice` to be able to call `from_bytes_unchecked`.
219222
let frame = HandShakeFrame::from_bytes_unchecked(src.into());
220223

221224
frame.into()

0 commit comments

Comments
 (0)