From d2e91953ee40d7ce9cd753162a4ca2884daa01d7 Mon Sep 17 00:00:00 2001 From: Tim Neumann Date: Thu, 17 Dec 2015 21:56:54 +0100 Subject: [PATCH] Use full path to mem::transmute in macro --- core-foundation/src/boolean.rs | 1 - core-foundation/src/bundle.rs | 1 - core-foundation/src/data.rs | 1 - core-foundation/src/lib.rs | 4 ++-- core-foundation/src/runloop.rs | 1 - core-foundation/src/string.rs | 1 - core-foundation/src/url.rs | 1 - 7 files changed, 2 insertions(+), 8 deletions(-) diff --git a/core-foundation/src/boolean.rs b/core-foundation/src/boolean.rs index 20f4630..8e6ca3b 100644 --- a/core-foundation/src/boolean.rs +++ b/core-foundation/src/boolean.rs @@ -11,7 +11,6 @@ use core_foundation_sys::base::{CFRelease}; pub use core_foundation_sys::number::{CFBooleanRef, CFBooleanGetTypeID, kCFBooleanTrue, kCFBooleanFalse}; -use std::mem; use base::TCFType; diff --git a/core-foundation/src/bundle.rs b/core-foundation/src/bundle.rs index 2f42b26..7b32635 100644 --- a/core-foundation/src/bundle.rs +++ b/core-foundation/src/bundle.rs @@ -11,7 +11,6 @@ pub use core_foundation_sys::bundle::*; use core_foundation_sys::base::CFRelease; -use std::mem; use base::{TCFType}; diff --git a/core-foundation/src/data.rs b/core-foundation/src/data.rs index 9b6a65f..7d83a61 100644 --- a/core-foundation/src/data.rs +++ b/core-foundation/src/data.rs @@ -12,7 +12,6 @@ pub use core_foundation_sys::data::*; use core_foundation_sys::base::{CFIndex, CFRelease}; use core_foundation_sys::base::{kCFAllocatorDefault}; -use std::mem; use std::ops::Deref; use std::slice; diff --git a/core-foundation/src/lib.rs b/core-foundation/src/lib.rs index 39b533a..4457f72 100644 --- a/core-foundation/src/lib.rs +++ b/core-foundation/src/lib.rs @@ -22,14 +22,14 @@ macro_rules! impl_TCFType { #[inline] unsafe fn wrap_under_get_rule(reference: $raw) -> $ty { - let reference = mem::transmute(::core_foundation_sys::base::CFRetain(mem::transmute(reference))); + let reference = ::std::mem::transmute(::core_foundation_sys::base::CFRetain(::std::mem::transmute(reference))); $crate::base::TCFType::wrap_under_create_rule(reference) } #[inline] fn as_CFTypeRef(&self) -> ::core_foundation_sys::base::CFTypeRef { unsafe { - mem::transmute(self.as_concrete_TypeRef()) + ::std::mem::transmute(self.as_concrete_TypeRef()) } } diff --git a/core-foundation/src/runloop.rs b/core-foundation/src/runloop.rs index ccf7b73..5655535 100644 --- a/core-foundation/src/runloop.rs +++ b/core-foundation/src/runloop.rs @@ -14,7 +14,6 @@ use core_foundation_sys::base::{CFIndex, CFRelease}; use core_foundation_sys::base::{kCFAllocatorDefault, CFOptionFlags}; use core_foundation_sys::string::CFStringRef; use core_foundation_sys::date::{CFAbsoluteTime, CFTimeInterval}; -use std::mem; use base::{TCFType}; use string::{CFString}; diff --git a/core-foundation/src/string.rs b/core-foundation/src/string.rs index 37f06b4..dafc2bb 100644 --- a/core-foundation/src/string.rs +++ b/core-foundation/src/string.rs @@ -17,7 +17,6 @@ use core_foundation_sys::base::{Boolean, CFIndex, CFRange, CFRelease}; use core_foundation_sys::base::{kCFAllocatorDefault, kCFAllocatorNull}; use std::fmt; use std::str::{self, FromStr}; -use std::mem; use std::ptr; use std::vec::Vec; use std::ffi::CStr; diff --git a/core-foundation/src/url.rs b/core-foundation/src/url.rs index 47f44cb..bf2bc1e 100644 --- a/core-foundation/src/url.rs +++ b/core-foundation/src/url.rs @@ -16,7 +16,6 @@ use string::{CFString}; use core_foundation_sys::base::{kCFAllocatorDefault, CFRelease}; use std::fmt; -use std::mem; pub struct CFURL(CFURLRef);