summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-03-31 17:24:52 +0200
committerLaurenz <laurmaedje@gmail.com>2019-03-31 17:24:52 +0200
commit54ace2a7fdf3daa7c050dbbc497699714a487bd4 (patch)
tree86eb5462ff0af85bd6d3ad9b6028b0beec806696 /src
parentb24bac7cae6283a4f29bdba844d6ba56831fd1bb (diff)
Simplify subsetter definition ✨
Diffstat (limited to 'src')
-rw-r--r--src/font.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/font.rs b/src/font.rs
index f2aa1c28..f596af0f 100644
--- a/src/font.rs
+++ b/src/font.rs
@@ -409,12 +409,8 @@ struct Subsetter<'d> {
}
impl<'d> Subsetter<'d> {
- fn subset<I1, S1, I2, S2>(mut self, needed_tables: I1, optional_tables: I2)
- -> FontResult<Font>
- where
- I1: IntoIterator<Item=S1>, S1: AsRef<str>,
- I2: IntoIterator<Item=S2>, S2: AsRef<str>
- {
+ fn subset<I, S>(mut self, needed_tables: I, optional_tables: I) -> FontResult<Font>
+ where I: IntoIterator<Item=S>, S: AsRef<str> {
// Find out which glyphs to include based on which characters we want
// and which glyphs are used by composition.
self.build_glyphs()?;