Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use full path to mem::transmute in macro #74

Merged
merged 1 commit into from Dec 17, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Use full path to mem::transmute in macro

  • Loading branch information
TimNN committed Dec 17, 2015
commit d2e91953ee40d7ce9cd753162a4ca2884daa01d7
@@ -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;

@@ -11,7 +11,6 @@

pub use core_foundation_sys::bundle::*;
use core_foundation_sys::base::CFRelease;
use std::mem;

use base::{TCFType};

@@ -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;

@@ -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())
}
}

@@ -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};
@@ -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;
@@ -16,7 +16,6 @@ use string::{CFString};

use core_foundation_sys::base::{kCFAllocatorDefault, CFRelease};
use std::fmt;
use std::mem;

pub struct CFURL(CFURLRef);

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.