make clippy happy

This commit is contained in:
Noa Aarts 2024-10-19 15:34:03 +02:00
parent a8bc1555c2
commit a27dcf013f
Signed by: noa
GPG key ID: 1850932741EFF672
6 changed files with 30 additions and 50 deletions

View file

@ -107,7 +107,7 @@ where
fn change_protocol(&mut self, protocol: &Protocol) {
match protocol {
Protocol::Text => self.parser = ParserTypes::TextParser(TextParser::new(0)),
Protocol::Binary => self.parser = ParserTypes::BinaryParser(BinaryParser::new()),
Protocol::Binary => self.parser = ParserTypes::BinaryParser(BinaryParser::default()),
}
}