Skip to content

Commit

Permalink
Remove unnecessary into_iter call in graphics::text
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 16, 2023
1 parent 45c5cfe commit 723111b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions graphics/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ pub fn font_system() -> &'static RwLock<FontSystem> {

FONT_SYSTEM.get_or_init(|| {
RwLock::new(FontSystem {
raw: cosmic_text::FontSystem::new_with_fonts(
[cosmic_text::fontdb::Source::Binary(Arc::new(
raw: cosmic_text::FontSystem::new_with_fonts([
cosmic_text::fontdb::Source::Binary(Arc::new(
include_bytes!("../fonts/Iced-Icons.ttf").as_slice(),
))]
.into_iter(),
),
)),
]),
version: Version::default(),
})
})
Expand Down

0 comments on commit 723111b

Please sign in to comment.