Skip to content

Commit

Permalink
allow dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyRosenblum committed May 4, 2024
1 parent 9e497fe commit 8c14a73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions quic/s2n-quic/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ pub mod stateless_reset_token;
pub mod tls;

// These providers are not currently exposed to applications
#[allow(dead_code)]
pub(crate) mod connection_close_formatter;
#[allow(dead_code)]
pub(crate) mod path_migration;
#[allow(dead_code)]
pub(crate) mod sync;

cfg_if!(
if #[cfg(any(test, feature = "unstable-provider-packet-interceptor"))] {
pub mod packet_interceptor;
} else {
#[allow(dead_code)]
pub(crate) mod packet_interceptor;
}
);
Expand All @@ -34,6 +38,7 @@ cfg_if!(
if #[cfg(any(test, feature = "unstable-provider-random"))] {
pub mod random;
} else {
#[allow(dead_code)]
pub(crate) mod random;
}
);
Expand All @@ -42,6 +47,7 @@ cfg_if!(
if #[cfg(any(test, feature = "unstable-provider-datagram"))] {
pub mod datagram;
} else {
#[allow(dead_code)]
pub(crate) mod datagram;
}
);
Expand Down

0 comments on commit 8c14a73

Please sign in to comment.