diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-10 08:31:12 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-10 08:31:12 -0500 |
commit | 8d4dda299bc3f105d86eea0f59acdd37130f291c (patch) | |
tree | 78cbf7787570654958529436113ced05329deade /examples/process.rs | |
parent | 90d19a9cc76fd36b3155bd5d06cf72f7e76ce9a5 (diff) | |
download | vt100-rust-8d4dda299bc3f105d86eea0f59acdd37130f291c.tar.gz vt100-rust-8d4dda299bc3f105d86eea0f59acdd37130f291c.zip |
add Default impl for Parser
Diffstat (limited to 'examples/process.rs')
-rw-r--r-- | examples/process.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/process.rs b/examples/process.rs index a556b96..d8d6886 100644 --- a/examples/process.rs +++ b/examples/process.rs @@ -12,7 +12,7 @@ fn read_frames() -> impl Iterator<Item = Vec<u8>> { } fn process_frames(frames: &[Vec<u8>]) { - let mut parser = vt100::Parser::new(24, 80, 0); + let mut parser = vt100::Parser::default(); for frame in frames { parser.process(&frame); } |