From 721e3fca34667e1e13f31859d6e1eefd3e7d4d2e Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Sat, 19 Oct 2024 15:38:51 +0200 Subject: [PATCH] use default for textprotocol --- src/flutclient.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flutclient.rs b/src/flutclient.rs index 3e12e1e..c890b67 100644 --- a/src/flutclient.rs +++ b/src/flutclient.rs @@ -106,7 +106,7 @@ where fn change_protocol(&mut self, protocol: &Protocol) { match protocol { - Protocol::Text => self.parser = ParserTypes::TextParser(TextParser::new(0)), + Protocol::Text => self.parser = ParserTypes::TextParser(TextParser::default()), Protocol::Binary => self.parser = ParserTypes::BinaryParser(BinaryParser::default()), } } @@ -116,7 +116,7 @@ where reader: BufReader::new(reader), writer: BufWriter::new(writer), grids, - parser: ParserTypes::TextParser(TextParser::new(0)), + parser: ParserTypes::TextParser(TextParser::default()), counter: 0, } }