Remove unnecessary into_iter call in graphics::text

This commit is contained in:
Héctor Ramón Jiménez 2023-09-16 19:09:31 +02:00
parent 45c5cfe577
commit 723111bb0d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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(),
})
})