Use Vec::new instead of vec! macro

This commit is contained in:
Héctor Ramón Jiménez 2023-04-21 20:56:11 +02:00
parent 87d75531b7
commit b85d6a4f23
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -265,7 +265,7 @@ fn shape_skip(
let fonts = font_system.get_font_matches(attrs);
let default_families = [&attrs.family];
let mut font_iter = FontFallbackIter::new(font_system, &fonts, &default_families, vec![]);
let mut font_iter = FontFallbackIter::new(font_system, &fonts, &default_families, Vec::new());
let font = font_iter.next().expect("no default font found");
let font_id = font.id();