File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2245,7 +2245,7 @@ impl<'a> Face<'a> {
22452245 & self ,
22462246 glyph_id : GlyphId ,
22472247 pixels_per_em : u16 ,
2248- ) -> Option < RasterGlyphImage > {
2248+ ) -> Option < RasterGlyphImage < ' _ > > {
22492249 if let Some ( table) = self . tables . sbix {
22502250 if let Some ( strike) = table. best_strike ( pixels_per_em) {
22512251 return strike. get ( glyph_id) ;
Original file line number Diff line number Diff line change @@ -799,7 +799,7 @@ fn parse_sid_metadata<'a>(
799799 Some ( FontKind :: SID ( metadata) )
800800}
801801
802- fn parse_cid_metadata ( data : & [ u8 ] , top_dict : TopDict , number_of_glyphs : u16 ) -> Option < FontKind > {
802+ fn parse_cid_metadata ( data : & [ u8 ] , top_dict : TopDict , number_of_glyphs : u16 ) -> Option < FontKind < ' _ > > {
803803 let ( charset_offset, fd_array_offset, fd_select_offset) = match (
804804 top_dict. charset_offset ,
805805 top_dict. fd_array_offset ,
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ fn outline_impl(
484484pub ( crate ) fn parse_simple_outline (
485485 glyph_data : & [ u8 ] ,
486486 number_of_contours : NonZeroU16 ,
487- ) -> Option < GlyphPointsIter > {
487+ ) -> Option < GlyphPointsIter < ' _ > > {
488488 let mut s = Stream :: new ( glyph_data) ;
489489 let endpoints = s. read_array16 :: < u16 > ( number_of_contours. get ( ) ) ?;
490490
Original file line number Diff line number Diff line change @@ -907,7 +907,7 @@ impl<'a> AnchorMatrix<'a> {
907907 }
908908
909909 /// Returns an [`Anchor`] at position.
910- pub fn get ( & self , row : u16 , col : u16 ) -> Option < Anchor > {
910+ pub fn get ( & self , row : u16 , col : u16 ) -> Option < Anchor < ' _ > > {
911911 let idx = u32:: from ( row) * u32:: from ( self . cols ) + u32:: from ( col) ;
912912 let offset = self . matrix . get ( idx) ??. to_usize ( ) ;
913913 Anchor :: parse ( self . data . get ( offset..) ?)
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ impl FromData for MathValueRecord {
4545}
4646
4747impl MathValueRecord {
48- fn get ( self , data : & [ u8 ] ) -> MathValue {
48+ fn get ( self , data : & [ u8 ] ) -> MathValue < ' _ > {
4949 let device = self
5050 . device_offset
5151 . and_then ( |offset| data. get ( offset. to_usize ( ) ..) )
Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ impl<'a> Table<'a> {
420420 & self ,
421421 axis : Tag ,
422422 match_value : Option < Fixed > ,
423- ) -> Option < AxisValueSubtable > {
423+ ) -> Option < AxisValueSubtable < ' _ > > {
424424 for subtable in self . subtables ( ) {
425425 match subtable {
426426 AxisValueSubtable :: Format1 ( AxisValueSubtableFormat1 {
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ impl<'a> ItemVariationStore<'a> {
6060 } )
6161 }
6262
63- pub fn region_indices ( & self , index : u16 ) -> Option < LazyArray16 < u16 > > {
63+ pub fn region_indices ( & self , index : u16 ) -> Option < LazyArray16 < ' _ , u16 > > {
6464 // Offsets in bytes from the start of the item variation store
6565 // to each item variation data subtable.
6666 let offset = self . data_offsets . get ( index) ?;
You can’t perform that action at this time.
0 commit comments