From 54ace2a7fdf3daa7c050dbbc497699714a487bd4 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 31 Mar 2019 17:24:52 +0200 Subject: [PATCH] =?UTF-8?q?Simplify=20subsetter=20definition=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/font.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/font.rs b/src/font.rs index f2aa1c281..f596af0f8 100644 --- a/src/font.rs +++ b/src/font.rs @@ -409,12 +409,8 @@ struct Subsetter<'d> { } impl<'d> Subsetter<'d> { - fn subset(mut self, needed_tables: I1, optional_tables: I2) - -> FontResult - where - I1: IntoIterator, S1: AsRef, - I2: IntoIterator, S2: AsRef - { + fn subset(mut self, needed_tables: I, optional_tables: I) -> FontResult + where I: IntoIterator, S: AsRef { // Find out which glyphs to include based on which characters we want // and which glyphs are used by composition. self.build_glyphs()?;