From abd30e5e4be133611439fa0055fcdc9e19bbb0f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andor=20Uhl=C3=A1r?= Date: Tue, 18 Aug 2015 17:17:22 +0200 Subject: [PATCH] No need for implicit core imports anymore --- src/lib.rs | 3 --- src/raw/console.rs | 2 -- src/raw/mod.rs | 3 --- src/raw/services/apt.rs | 3 --- src/raw/services/gsp.rs | 3 --- src/raw/svc.rs | 3 --- src/services/gsp.rs | 2 -- 7 files changed, 19 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b652b63..38ff61a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,11 +1,8 @@ -#![feature(core)] #![feature(no_std)] #![no_std] #![crate_type = "rlib"] #![crate_name = "ctru"] -extern crate core; - pub mod raw; pub type Result = i32; diff --git a/src/raw/console.rs b/src/raw/console.rs index abcfa3a..902aebb 100644 --- a/src/raw/console.rs +++ b/src/raw/console.rs @@ -1,5 +1,3 @@ -extern crate core; - use super::c_void; use super::gfx::*; diff --git a/src/raw/mod.rs b/src/raw/mod.rs index ef2284b..f4947a7 100644 --- a/src/raw/mod.rs +++ b/src/raw/mod.rs @@ -16,9 +16,6 @@ pub mod services; pub use self::types::*; -extern crate core; -use core::option::Option; - #[repr(u8)] pub enum c_void { __variant1, diff --git a/src/raw/services/apt.rs b/src/raw/services/apt.rs index 51bad0f..b669c9b 100644 --- a/src/raw/services/apt.rs +++ b/src/raw/services/apt.rs @@ -1,6 +1,3 @@ -extern crate core; -use core::option::Option; - use ::{Handle, Result}; use ::raw::c_void; diff --git a/src/raw/services/gsp.rs b/src/raw/services/gsp.rs index 029d782..af54e2c 100644 --- a/src/raw/services/gsp.rs +++ b/src/raw/services/gsp.rs @@ -1,8 +1,5 @@ use super::super::types::*; -extern crate core; -use core::clone::Clone; - #[inline] pub fn GSP_REBASE_REG(r: u32) { ((r)-0x1EB00000); diff --git a/src/raw/svc.rs b/src/raw/svc.rs index 23fc49e..1cac114 100644 --- a/src/raw/svc.rs +++ b/src/raw/svc.rs @@ -1,9 +1,6 @@ use super::*; use super::super::{Handle, Result}; -extern crate core; -use core::clone::Clone; - #[repr(C)] pub enum MemOp { MEMOP_FREE = 1, diff --git a/src/services/gsp.rs b/src/services/gsp.rs index 90ed3b2..5ceef53 100644 --- a/src/services/gsp.rs +++ b/src/services/gsp.rs @@ -1,5 +1,3 @@ -use ::Result; - use ::raw::services::gsp; pub enum Event {