Skip to content

Commit

Permalink
Use Vec::new instead of vec! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Apr 21, 2023
1 parent 87d7553 commit b85d6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b85d6a4

Please sign in to comment.