Browse Source

Remove Console::with_screen

pull/86/head
AzureMarker 1 year ago
parent
commit
964a3d9e00
  1. 5
      ctru-rs/src/console.rs

5
ctru-rs/src/console.rs

@ -322,11 +322,6 @@ impl<'screen, S: Screen> Console<'screen, S> { @@ -322,11 +322,6 @@ impl<'screen, S: Screen> Console<'screen, S> {
_ => unreachable!(),
}
}
/// Run a function with access to the underlying screen.
pub fn with_screen(&mut self, action: impl FnOnce(&mut RefMut<'_, S>)) {
action(&mut self.screen);
}
}
impl<S: Screen + Swap> Swap for Console<'_, S> {

Loading…
Cancel
Save