Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Oct 7, 2019
1 parent b94615b commit 35f1910
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions components/gfx/platform/macos/font_template.rs
Expand Up @@ -6,7 +6,6 @@ use app_units::Au;
use core_foundation::array::CFArray;
use core_foundation::base::{CFType, TCFType};
use core_foundation::dictionary::CFDictionary;
use core_foundation::number::CFNumber;
use core_foundation::string::CFString;
use core_graphics::data_provider::CGDataProvider;
use core_graphics::font::CGFont;
Expand Down Expand Up @@ -103,12 +102,10 @@ impl FontTemplateData {
// that one.

let attributes: CFDictionary<CFString, CFType> =
CFDictionary::from_CFType_pairs(&[
(
CFString::new("NSFontNameAttribute"),
CFString::new(&*self.identifier).as_CFType(),
),
]);
CFDictionary::from_CFType_pairs(&[(
CFString::new("NSFontNameAttribute"),
CFString::new(&*self.identifier).as_CFType(),
)]);

let descriptor = font_descriptor::new_from_attributes(&attributes);
let descriptors = CFArray::from_CFTypes(&[descriptor]);
Expand Down

0 comments on commit 35f1910

Please sign in to comment.