File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ use core_foundation::url::{CFURLRef, CFURL};
19
19
use core_foundation:: { declare_TCFType, impl_CFTypeDescription, impl_TCFType} ;
20
20
use core_graphics:: base:: CGFloat ;
21
21
22
- use std:: path:: PathBuf ;
23
22
use core_foundation:: boolean:: CFBoolean ;
23
+ use std:: path:: PathBuf ;
24
24
25
25
/*
26
26
* CTFontTraits.h
@@ -154,7 +154,11 @@ impl TraitAccessorPrivate for CTFontTraits {
154
154
// but can occur in practice with certain fonts in MacOS 13 (Ventura). When this
155
155
// does occur in Ventura, the value returned is always a CFBoolean, so we attempt to
156
156
// convert into a boolean and create a number from there.
157
- let value_as_bool = bool:: from ( cftype. downcast :: < CFBoolean > ( ) . expect ( "Should be able to convert value into CFBoolean" ) ) ;
157
+ let value_as_bool = bool:: from (
158
+ cftype
159
+ . downcast :: < CFBoolean > ( )
160
+ . expect ( "Should be able to convert value into CFBoolean" ) ,
161
+ ) ;
158
162
CFNumber :: from ( value_as_bool as i32 )
159
163
}
160
164
}
You can’t perform that action at this time.
0 commit comments