From 2ed31e56534b27a7796d895e910024ff7fcdcc38 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Thu, 20 Jan 2022 13:55:50 +0100 Subject: [PATCH] Removed PhantomData dependency --- ctru-rs/src/console.rs | 1 - ctru-rs/src/gfx.rs | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ctru-rs/src/console.rs b/ctru-rs/src/console.rs index ef71f78..33c61c1 100644 --- a/ctru-rs/src/console.rs +++ b/ctru-rs/src/console.rs @@ -1,6 +1,5 @@ use std::cell::Ref; use std::default::Default; -use std::marker::PhantomData; use ctru_sys::{consoleClear, consoleInit, consoleSelect, consoleSetWindow, PrintConsole}; diff --git a/ctru-rs/src/gfx.rs b/ctru-rs/src/gfx.rs index 842eb0d..aec2572 100644 --- a/ctru-rs/src/gfx.rs +++ b/ctru-rs/src/gfx.rs @@ -71,7 +71,7 @@ pub enum Side { pub struct Gfx { pub top_screen: RefCell, pub bottom_screen: RefCell, - _private: () + _private: (), } 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 { Gfx { top_screen: RefCell::new(TopScreen { _private: () }), bottom_screen: RefCell::new(BottomScreen { _private: () }), + _private: (), } } }