Browse Source

Fix compile error

pull/72/head
Mark Drobnak 2 years ago committed by GitHub
parent
commit
1e1beaa35b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ctru-rs/src/applets/swkbd.rs
  2. 2
      ctru-rs/src/console.rs

2
ctru-rs/src/applets/swkbd.rs

@ -90,7 +90,7 @@ impl Swkbd { @@ -90,7 +90,7 @@ impl Swkbd {
/// (from 1-3).
pub fn init(keyboard_type: Kind, num_buttons: i32) -> Self {
unsafe {
let mut state = Box::default();
let mut state = Box::<SwkbdState>::default();
swkbdInit(state.as_mut(), keyboard_type as u32, num_buttons, -1);
Swkbd { state }
}

2
ctru-rs/src/console.rs

@ -17,7 +17,7 @@ impl<'screen> Console<'screen> { @@ -17,7 +17,7 @@ impl<'screen> Console<'screen> {
/// previously (including other consoles). The new console is automatically selected for
/// printing.
pub fn init(screen: RefMut<'screen, dyn Screen>) -> Self {
let mut context = Box::default();
let mut context = Box::<PrintConsole>::default();
unsafe { consoleInit(screen.as_raw(), context.as_mut()) };

Loading…
Cancel
Save