use default for textprotocol
This commit is contained in:
parent
a27dcf013f
commit
721e3fca34
1 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ where
|
||||||
|
|
||||||
fn change_protocol(&mut self, protocol: &Protocol) {
|
fn change_protocol(&mut self, protocol: &Protocol) {
|
||||||
match 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()),
|
Protocol::Binary => self.parser = ParserTypes::BinaryParser(BinaryParser::default()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -116,7 +116,7 @@ where
|
||||||
reader: BufReader::new(reader),
|
reader: BufReader::new(reader),
|
||||||
writer: BufWriter::new(writer),
|
writer: BufWriter::new(writer),
|
||||||
grids,
|
grids,
|
||||||
parser: ParserTypes::TextParser(TextParser::new(0)),
|
parser: ParserTypes::TextParser(TextParser::default()),
|
||||||
counter: 0,
|
counter: 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue