From 37e11bd27e59b72aac2cd1ff56eff86fcbeecbf8 Mon Sep 17 00:00:00 2001 From: Christian Howe Date: Wed, 4 Jan 2017 19:44:37 -0500 Subject: [PATCH] Remove unnecessary casts in propertylist --- core-foundation/src/propertylist.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core-foundation/src/propertylist.rs b/core-foundation/src/propertylist.rs index a14a42b..9b175fe 100644 --- a/core-foundation/src/propertylist.rs +++ b/core-foundation/src/propertylist.rs @@ -30,8 +30,8 @@ pub fn create_with_data(data: CFData, let property_list = CFPropertyListCreateWithData(kCFAllocatorDefault, data.as_concrete_TypeRef(), options, - &mut format as *mut CFPropertyListFormat, - &mut error as *mut CFErrorRef); + &mut format, + &mut error); if property_list.is_null() { Err(TCFType::wrap_under_create_rule(error)) } else { @@ -47,7 +47,7 @@ pub fn create_data(property_list: *const c_void, format: CFPropertyListFormat) - property_list, format, 0, - &mut error as *mut CFErrorRef); + &mut error); if data_ref.is_null() { Err(TCFType::wrap_under_create_rule(error)) } else {