Skip to content

Commit

Permalink
Use strict header parsing in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Mar 18, 2021
1 parent 865bfda commit c43cda1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flussab-cnf/examples/roundtrip_cnf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main_err() -> Result<(), ParseError> {
let stdin = std::io::stdin();
let stdout = std::io::stdout();

let mut cnf_reader = cnf::Parser::<i32>::from_read(stdin.lock(), false)?;
let mut cnf_reader = cnf::Parser::<i32>::from_read(stdin.lock(), true)?;
let mut cnf_writer = ByteWriter::from_write(stdout.lock());

if let Some(header) = cnf_reader.header() {
Expand Down
2 changes: 1 addition & 1 deletion flussab-cnf/examples/roundtrip_gcnf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main_err() -> Result<(), ParseError> {
let stdin = std::io::stdin();
let stdout = std::io::stdout();

let mut gcnf_reader = gcnf::Parser::<i32>::from_read(stdin.lock(), false)?;
let mut gcnf_reader = gcnf::Parser::<i32>::from_read(stdin.lock(), true)?;
let mut gcnf_writer = ByteWriter::from_write(stdout.lock());

if let Some(header) = gcnf_reader.header() {
Expand Down
2 changes: 1 addition & 1 deletion flussab-cnf/examples/roundtrip_wcnf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main_err() -> Result<(), ParseError> {
let stdin = std::io::stdin();
let stdout = std::io::stdout();

let mut wcnf_reader = wcnf::Parser::<i32>::from_read(stdin.lock(), false)?;
let mut wcnf_reader = wcnf::Parser::<i32>::from_read(stdin.lock(), true)?;
let mut wcnf_writer = ByteWriter::from_write(stdout.lock());

if let Some(header) = wcnf_reader.header() {
Expand Down

0 comments on commit c43cda1

Please sign in to comment.