Skip to content

Commit 868dae1

Browse files
committed
Make some bits non-public
Both `SwitchableConn` and `EitherConn` do not need to be public, so make them `pub (crate)` instead.
1 parent 271b849 commit 868dae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packet.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ fn packet(i: &[u8]) -> nom::IResult<&[u8], (u8, Packet)> {
214214
)(i)
215215
}
216216

217-
pub struct SwitchableConn<T: Read + Write>(Option<EitherConn<T>>);
217+
pub(crate) struct SwitchableConn<T: Read + Write>(Option<EitherConn<T>>);
218218

219-
pub enum EitherConn<T: Read + Write> {
219+
pub(crate) enum EitherConn<T: Read + Write> {
220220
Plain(T),
221221
TLS(rustls::StreamOwned<ServerConnection, T>),
222222
}

0 commit comments

Comments
 (0)