File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 13
13
//! [`SCPreferences`]: https://developer.apple.com/documentation/systemconfiguration/scpreferences-ft8
14
14
15
15
16
- use core_foundation:: base:: { CFAllocatorRef , TCFType } ;
16
+ use core_foundation:: base:: { CFAllocator , TCFType } ;
17
17
use core_foundation:: string:: CFString ;
18
18
19
19
pub use system_configuration_sys:: preferences:: * ;
@@ -50,7 +50,7 @@ impl SCPreferences {
50
50
///
51
51
/// [SCPreferencesCreate]: https://developer.apple.com/documentation/systemconfiguration/1516807-scpreferencescreate?language=objc
52
52
pub fn with_allocator (
53
- allocator : CFAllocatorRef ,
53
+ allocator : & CFAllocator ,
54
54
calling_process_name : & CFString ,
55
55
prefs_id : Option < & CFString > ,
56
56
) -> Self {
@@ -61,7 +61,7 @@ impl SCPreferences {
61
61
62
62
unsafe {
63
63
SCPreferences :: wrap_under_create_rule ( SCPreferencesCreate (
64
- allocator,
64
+ allocator. as_concrete_TypeRef ( ) ,
65
65
calling_process_name. as_concrete_TypeRef ( ) ,
66
66
prefs_id_ptr,
67
67
) )
You can’t perform that action at this time.
0 commit comments