diff options
author | 2023-10-27 03:24:59 +0200 | |
---|---|---|
committer | 2023-10-27 03:24:59 +0200 | |
commit | a00ebcde3d698bc6b59a7a258e91c3612a6faaaf (patch) | |
tree | 8a075bfafa53c9e15ba19f4e21434c929ffb9281 /graphics/src | |
parent | 86b877517feb15b2155c6cfef29246a3f281c8ae (diff) | |
download | iced-a00ebcde3d698bc6b59a7a258e91c3612a6faaaf.tar.gz iced-a00ebcde3d698bc6b59a7a258e91c3612a6faaaf.tar.bz2 iced-a00ebcde3d698bc6b59a7a258e91c3612a6faaaf.zip |
Remove unnecessary `into_iter` call in `iced_graphics`
Diffstat (limited to 'graphics/src')
-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 bc06aa3c..a7d52645 100644 --- a/graphics/src/text.rs +++ b/graphics/src/text.rs @@ -22,12 +22,11 @@ pub struct FontSystem { impl FontSystem { pub fn new() -> Self { FontSystem { - raw: RwLock::new(cosmic_text::FontSystem::new_with_fonts( - [cosmic_text::fontdb::Source::Binary(Arc::new( + raw: RwLock::new(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(), } } |