Remove unnecessary into_iter call in graphics::text
This commit is contained in:
parent
45c5cfe577
commit
723111bb0d
1 changed files with 4 additions and 5 deletions
|
|
@ -21,12 +21,11 @@ pub fn font_system() -> &'static RwLock<FontSystem> {
|
||||||
|
|
||||||
FONT_SYSTEM.get_or_init(|| {
|
FONT_SYSTEM.get_or_init(|| {
|
||||||
RwLock::new(FontSystem {
|
RwLock::new(FontSystem {
|
||||||
raw: cosmic_text::FontSystem::new_with_fonts(
|
raw: cosmic_text::FontSystem::new_with_fonts([
|
||||||
[cosmic_text::fontdb::Source::Binary(Arc::new(
|
cosmic_text::fontdb::Source::Binary(Arc::new(
|
||||||
include_bytes!("../fonts/Iced-Icons.ttf").as_slice(),
|
include_bytes!("../fonts/Iced-Icons.ttf").as_slice(),
|
||||||
))]
|
)),
|
||||||
.into_iter(),
|
]),
|
||||||
),
|
|
||||||
version: Version::default(),
|
version: Version::default(),
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue