Browse Source

Removed PhantomData dependency

pull/22/head
Andrea Ciliberti 3 years ago
parent
commit
2ed31e5653
  1. 1
      ctru-rs/src/console.rs
  2. 4
      ctru-rs/src/gfx.rs

1
ctru-rs/src/console.rs

@ -1,6 +1,5 @@ @@ -1,6 +1,5 @@
use std::cell::Ref;
use std::default::Default;
use std::marker::PhantomData;
use ctru_sys::{consoleClear, consoleInit, consoleSelect, consoleSetWindow, PrintConsole};

4
ctru-rs/src/gfx.rs

@ -71,7 +71,7 @@ pub enum Side { @@ -71,7 +71,7 @@ pub enum Side {
pub struct Gfx {
pub top_screen: RefCell<TopScreen>,
pub bottom_screen: RefCell<BottomScreen>,
_private: ()
_private: (),
}
impl Gfx {
@ -90,6 +90,7 @@ impl Gfx { @@ -90,6 +90,7 @@ impl Gfx {
Gfx {
top_screen: RefCell::new(TopScreen { _private: () }),
bottom_screen: RefCell::new(BottomScreen { _private: () }),
_private: (),
}
}
@ -170,6 +171,7 @@ impl Default for Gfx { @@ -170,6 +171,7 @@ impl Default for Gfx {
Gfx {
top_screen: RefCell::new(TopScreen { _private: () }),
bottom_screen: RefCell::new(BottomScreen { _private: () }),
_private: (),
}
}
}

Loading…
Cancel
Save