aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-16 01:14:04 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-16 01:14:04 -0500
commit1e3ebda4e1d6a2cdfb507cc0ed39aaacf3df0314 (patch)
tree4a66bbaaad6d4fee1d0b4c4abf4f8fe6e2a658c3 /examples
parent2da2800028dd5f65a88d26037acb27c8c906cda7 (diff)
downloadvt100-rust-1e3ebda4e1d6a2cdfb507cc0ed39aaacf3df0314.tar.gz
vt100-rust-1e3ebda4e1d6a2cdfb507cc0ed39aaacf3df0314.zip
clippy
Diffstat (limited to 'examples')
-rw-r--r--examples/process.rs2
-rw-r--r--examples/process_diff.rs2
-rw-r--r--examples/process_full.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/process.rs b/examples/process.rs
index d8d6886..333f124 100644
--- a/examples/process.rs
+++ b/examples/process.rs
@@ -14,7 +14,7 @@ fn read_frames() -> impl Iterator<Item = Vec<u8>> {
fn process_frames(frames: &[Vec<u8>]) {
let mut parser = vt100::Parser::default();
for frame in frames {
- parser.process(&frame);
+ parser.process(frame);
}
}
diff --git a/examples/process_diff.rs b/examples/process_diff.rs
index c141269..84ab71c 100644
--- a/examples/process_diff.rs
+++ b/examples/process_diff.rs
@@ -16,7 +16,7 @@ fn draw_frames(frames: &[Vec<u8>]) {
let mut parser = vt100::Parser::default();
let mut screen = parser.screen().clone();
for frame in frames {
- parser.process(&frame);
+ parser.process(frame);
let new_screen = parser.screen().clone();
let diff = new_screen.contents_diff(&screen);
stdout.write_all(&diff).unwrap();
diff --git a/examples/process_full.rs b/examples/process_full.rs
index 5aa5422..fca87c7 100644
--- a/examples/process_full.rs
+++ b/examples/process_full.rs
@@ -15,7 +15,7 @@ fn draw_frames(frames: &[Vec<u8>]) {
let mut stdout = std::io::stdout();
let mut parser = vt100::Parser::default();
for frame in frames {
- parser.process(&frame);
+ parser.process(frame);
let contents = parser.screen().contents_formatted();
stdout.write_all(&contents).unwrap();
}