From 8835951f7d15468579026255d86c26a45c553f6e Mon Sep 17 00:00:00 2001 From: AzureMarker Date: Mon, 31 Jan 2022 20:38:13 -0800 Subject: [PATCH] Fix clippy warning about unused screen field --- ctru-rs/src/console.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ctru-rs/src/console.rs b/ctru-rs/src/console.rs index ec03a3d..ddd4fe8 100644 --- a/ctru-rs/src/console.rs +++ b/ctru-rs/src/console.rs @@ -9,7 +9,7 @@ static mut EMPTY_CONSOLE: PrintConsole = unsafe { const_zero::const_zero!(PrintC pub struct Console<'screen> { context: Box, - screen: RefMut<'screen, dyn Screen>, + _screen: RefMut<'screen, dyn Screen>, } impl<'screen> Console<'screen> { @@ -21,7 +21,10 @@ impl<'screen> Console<'screen> { unsafe { consoleInit(screen.as_raw(), context.as_mut()) }; - Console { context, screen } + Console { + context, + _screen: screen, + } } /// Returns true if a valid Console to print on is selected