Remove unnecessary into_iter call in iced_graphics

This commit is contained in:
Héctor Ramón Jiménez 2023-10-27 03:24:59 +02:00
parent 86b877517f
commit a00ebcde3d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

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