Clean up my own non-rustfmt style

This commit is contained in:
Linus Färnstrand
2018-01-21 16:18:01 +01:00
parent 70dd9c3a7e
commit c071ba7874
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -159,7 +159,8 @@ pub trait TCFType {
/// count.
#[inline]
fn into_CFType(self) -> CFType
where Self: Sized
where
Self: Sized,
{
let reference = self.as_CFTypeRef();
mem::forget(self);
+4 -2
View File
@@ -76,7 +76,8 @@ pub trait CFPropertyListSubClass: TCFType {
/// [`to_CFPropertyList`]: #method.to_CFPropertyList
#[inline]
fn into_CFPropertyList(self) -> CFPropertyList
where Self: Sized
where
Self: Sized,
{
let reference = self.as_concrete_TypeRef().as_void_ptr();
mem::forget(self);
@@ -132,7 +133,8 @@ impl CFPropertyList {
#[inline]
pub fn into_CFType(self) -> CFType
where Self: Sized
where
Self: Sized,
{
let reference = self.as_CFTypeRef();
mem::forget(self);