From f44175b9c35e86797600efb1115ce94bd0a687db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joseLu=C3=ADs?= Date: Thu, 3 Jun 2021 16:12:30 +0200 Subject: [PATCH] [rust] update example for issue #1716 --- rust/examples/issue-1716.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/examples/issue-1716.rs b/rust/examples/issue-1716.rs index 075936a43..eeab4969a 100644 --- a/rust/examples/issue-1716.rs +++ b/rust/examples/issue-1716.rs @@ -4,7 +4,7 @@ const W: u32 = 32; const H: u32 = 32; fn main() { - let mut nc = NcDirect::new().expect("couldn’t create ncdirect"); + let nc = NcDirect::new().expect("couldn’t create ncdirect"); nc.check_pixel_support() .expect("failed to check for sixel support"); @@ -19,7 +19,7 @@ fn main() { } let vframe1 = NcVisual::from_bgra(&buffer, H, W * 4, W).expect("couldn’t create visual"); - let voptions = NcVisualOptions::fullsize_pixel_without_plane(0, 0, H, W); + // let voptions = NcVisualOptions::fullsize_pixel_without_plane(0, 0, H, W); unsafe { let v = ffi::ncdirectf_render(nc, vframe1, NCBLIT_PIXEL, NCSCALE_NONE, 0, 0);