diff --git a/mqtt-v5/src/lib.rs b/mqtt-v5/src/lib.rs index edaed2a..94b4133 100644 --- a/mqtt-v5/src/lib.rs +++ b/mqtt-v5/src/lib.rs @@ -109,7 +109,7 @@ pub mod websocket { } } - #[derive(Debug)] + #[derive(Debug, Default)] pub struct WsUpgraderCodec {} impl WsUpgraderCodec { @@ -202,12 +202,6 @@ pub mod websocket { } } - impl Default for WsUpgraderCodec { - fn default() -> Self { - WsUpgraderCodec {} - } - } - impl Decoder for WsUpgraderCodec { type Error = WsDecodeError; type Item = String;