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(())