From 36a7355cd8d898da6f941477e2d6e66f17ef7bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joseLu=C3=ADs?= Date: Wed, 7 Apr 2021 21:27:10 +0200 Subject: [PATCH] rust: minor examples updates --- rust/examples/full-input.rs | 3 +-- rust/examples/pixel-cell.rs | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rust/examples/full-input.rs b/rust/examples/full-input.rs index d5a7e8237..2190772ca 100644 --- a/rust/examples/full-input.rs +++ b/rust/examples/full-input.rs @@ -31,7 +31,6 @@ fn main() -> NcResult<()> { println!("\nExiting..."); - rsleep![&mut nc, 1, 500]; - nc.stop()?; + rsleep![&mut nc, 1]; Ok(()) } diff --git a/rust/examples/pixel-cell.rs b/rust/examples/pixel-cell.rs index 552ceb114..53eb7c593 100644 --- a/rust/examples/pixel-cell.rs +++ b/rust/examples/pixel-cell.rs @@ -54,8 +54,11 @@ fn main() -> NcResult<()> { let voptions = NcVisualOptions::without_plane(1, 2, 0, 0, cell_y, cell_x, NCBLIT_PIXEL, 0); pixels.render(&mut nc, &voptions)?; - rsleep![&mut nc, 10]; + // FIXME: segfaults + // let mut stdplane = nc.stdplane(); + // let mut vplane = NcPlane::new_bound(&mut stdplane, 0, 0, 4, 4)? + rsleep![&mut nc, 10]; pixels.destroy(); Ok(())