Remove unnecessary into_iter call in iced_graphics
This commit is contained in:
parent
86b877517f
commit
a00ebcde3d
1 changed files with 4 additions and 5 deletions
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue