diff --git a/read-fonts/src/tables/layout.rs b/read-fonts/src/tables/layout.rs index 6a3a9d915..e2288e1c2 100644 --- a/read-fonts/src/tables/layout.rs +++ b/read-fonts/src/tables/layout.rs @@ -41,7 +41,7 @@ pub enum Subtables<'a, T: FontRead<'a>, Ext: ExtensionLookup<'a, T>> { Extension(ArrayOfOffsets<'a, Ext>), } -impl<'a, T: FontRead<'a>, Ext: ExtensionLookup<'a, T>> Subtables<'a, T, Ext> { +impl<'a, T: FontRead<'a> + 'a, Ext: ExtensionLookup<'a, T> + 'a> Subtables<'a, T, Ext> { /// create a new subtables array given offests to non-extension subtables pub(crate) fn new(offsets: &'a [BigEndian], data: FontData<'a>) -> Self { Subtables::Subtable(ArrayOfOffsets::new(offsets, data, ()))