From 30a8c99d74cca1ab5c3184998e1b87177a0d996c Mon Sep 17 00:00:00 2001 From: Brian Schwind Date: Sun, 19 Dec 2021 20:04:52 +0900 Subject: [PATCH] Fix clippy lints --- mqtt-v5/src/lib.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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;