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};
1919use core_foundation:: { declare_TCFType, impl_CFTypeDescription, impl_TCFType} ;
2020use core_graphics:: base:: CGFloat ;
2121
22- use std:: path:: PathBuf ;
2322use core_foundation:: boolean:: CFBoolean ;
23+ use std:: path:: PathBuf ;
2424
2525/*
2626* CTFontTraits.h
@@ -154,7 +154,11 @@ impl TraitAccessorPrivate for CTFontTraits {
154154 // but can occur in practice with certain fonts in MacOS 13 (Ventura). When this
155155 // does occur in Ventura, the value returned is always a CFBoolean, so we attempt to
156156 // 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+ ) ;
158162 CFNumber :: from ( value_as_bool as i32 )
159163 }
160164 }
You can’t perform that action at this time.
0 commit comments