Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit df85df3

Browse files
committed
Ignore buggy clippy::large_enum_variant lint
``` error: large size difference between variants --> src/lib.rs:354:1 | 354 | / pub enum TlsStream<T> { 355 | | Client(client::TlsStream<T>), | | ---------------------------- the second-largest variant contains at least 0 bytes 356 | | Server(server::TlsStream<T>), | | ---------------------------- the largest variant contains at least 1504 bytes 357 | | } | |_^ the entire enum is at least 0 bytes | = note: `-D clippy::large-enum-variant` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant ```
1 parent e70f938 commit df85df3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ impl<IO: AsyncRead + AsyncWrite + Unpin> Future for FallibleAccept<IO> {
350350
///
351351
/// This abstracts over the inner `client::TlsStream` and `server::TlsStream`, so you can use
352352
/// a single type to keep both client- and server-initiated TLS-encrypted connections.
353+
#[allow(clippy::large_enum_variant)] // https://github.com/rust-lang/rust-clippy/issues/9798
353354
#[derive(Debug)]
354355
pub enum TlsStream<T> {
355356
Client(client::TlsStream<T>),

0 commit comments

Comments
 (0)