We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf87bb4 commit 271b849Copy full SHA for 271b849
src/packet.rs
@@ -69,7 +69,7 @@ impl<W: Read + Write> PacketConn<W> {
69
}
70
71
pub fn switch_to_tls(&mut self, config: Arc<ServerConfig>) -> io::Result<()> {
72
- assert!(self.remaining() == 0); // otherwise we've read ahead into the TLS handshake and will be in trouble.
+ assert_eq!(self.remaining(), 0); // otherwise we've read ahead into the TLS handshake and will be in trouble.
73
74
self.rw.switch_to_tls(config)
75
0 commit comments