Skip to content

Commit 19374bd

Browse files
committed
formatting
1 parent 16d9bc7 commit 19374bd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

core-text/src/font_descriptor.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ use core_foundation::url::{CFURLRef, CFURL};
1919
use core_foundation::{declare_TCFType, impl_CFTypeDescription, impl_TCFType};
2020
use core_graphics::base::CGFloat;
2121

22-
use std::path::PathBuf;
2322
use 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
}

0 commit comments

Comments
 (0)