diff --git a/examples/cursor/mod.rs b/examples/cursor/mod.rs index fea8218..685b89e 100644 --- a/examples/cursor/mod.rs +++ b/examples/cursor/mod.rs @@ -21,7 +21,7 @@ pub fn pos() { let screen = Screen::default(); let mut cursor = cursor(&screen); // get the cursor position. - let (_x, _y) = cursor.pos(); + let (x, y) = cursor.pos(); } /// Move the cursor 3 up | demonstration. diff --git a/examples/input/keyboard/async_input.rs b/examples/input/keyboard/async_input.rs index 357e970..7d83f78 100644 --- a/examples/input/keyboard/async_input.rs +++ b/examples/input/keyboard/async_input.rs @@ -21,7 +21,7 @@ pub fn read_async_until() { let mut stdin = input.read_until_async(b'\r').bytes(); - for _i in 0..100 { + for i in 0..100 { terminal.clear(ClearType::All); cursor.goto(1, 1); let a = stdin.next(); diff --git a/examples/program_examples/command_bar.rs b/examples/program_examples/command_bar.rs index 592650c..7f3eaae 100644 --- a/examples/program_examples/command_bar.rs +++ b/examples/program_examples/command_bar.rs @@ -35,9 +35,9 @@ fn main() { { input_buf.lock().unwrap().clear(); } - Some(Ok(_val)) => + Some(Ok(val)) => { - input_buf.lock().unwrap().push(a.unwrap().unwrap() as char); + input_buf.lock().unwrap().push(val as char); } _ => {} } @@ -65,7 +65,7 @@ fn log(input_buf: Arc>, screen: &Screen) -> Vec