Skip to content

Commit

Permalink
[read-fonts] Add explicit lifetime annotations for older rustc (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr authored Feb 8, 2024
1 parent 5b3eaa6 commit 6b8c287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion read-fonts/src/tables/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Offset16>], data: FontData<'a>) -> Self {
Subtables::Subtable(ArrayOfOffsets::new(offsets, data, ()))
Expand Down

0 comments on commit 6b8c287

Please sign in to comment.