From b85d6a4f2376f8a8a7dadc0f8bcb89d4db10a1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 21 Apr 2023 20:56:11 +0200 Subject: [PATCH] Use `Vec::new` instead of `vec!` macro --- src/shape.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shape.rs b/src/shape.rs index 37c219d2a0..9ce585d951 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -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();