Browse Source

Fix clippy warning about unused screen field

pull/40/head
AzureMarker 3 years ago committed by Andrea Ciliberti
parent
commit
8835951f7d
  1. 7
      ctru-rs/src/console.rs

7
ctru-rs/src/console.rs

@ -9,7 +9,7 @@ static mut EMPTY_CONSOLE: PrintConsole = unsafe { const_zero::const_zero!(PrintC
pub struct Console<'screen> { pub struct Console<'screen> {
context: Box<PrintConsole>, context: Box<PrintConsole>,
screen: RefMut<'screen, dyn Screen>, _screen: RefMut<'screen, dyn Screen>,
} }
impl<'screen> Console<'screen> { impl<'screen> Console<'screen> {
@ -21,7 +21,10 @@ impl<'screen> Console<'screen> {
unsafe { consoleInit(screen.as_raw(), context.as_mut()) }; 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 /// Returns true if a valid Console to print on is selected

Loading…
Cancel
Save