diff options
author | 2023-09-16 19:09:31 +0200 | |
---|---|---|
committer | 2023-09-16 19:09:31 +0200 | |
commit | 723111bb0df486bffaedcaed0722b1793d65bfe3 (patch) | |
tree | 5ba09ff959bfa4eced5b68f00885c3f1fe9938a7 /graphics | |
parent | 45c5cfe5774ac99a6e1b1d1014418f68b21b41cf (diff) | |
download | iced-723111bb0df486bffaedcaed0722b1793d65bfe3.tar.gz iced-723111bb0df486bffaedcaed0722b1793d65bfe3.tar.bz2 iced-723111bb0df486bffaedcaed0722b1793d65bfe3.zip |
Remove unnecessary `into_iter` call in `graphics::text`
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/text.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/graphics/src/text.rs b/graphics/src/text.rs index 280e4f01..b4aeb2be 100644 --- a/graphics/src/text.rs +++ b/graphics/src/text.rs @@ -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(), }) }) |