File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ impl FamilyOwned {
88
88
}
89
89
}
90
90
91
- pub fn as_family ( & self ) -> Family {
91
+ pub fn as_family ( & self ) -> Family < ' _ > {
92
92
match self {
93
93
Self :: Name ( name) => Family :: Name ( name) ,
94
94
Self :: Serif => Family :: Serif ,
@@ -388,7 +388,7 @@ impl AttrsOwned {
388
388
}
389
389
}
390
390
391
- pub fn as_attrs ( & self ) -> Attrs {
391
+ pub fn as_attrs ( & self ) -> Attrs < ' _ > {
392
392
Attrs {
393
393
color_opt : self . color_opt ,
394
394
family : self . family_owned . as_family ( ) ,
@@ -422,7 +422,7 @@ impl AttrsList {
422
422
}
423
423
424
424
/// Get the default [Attrs]
425
- pub fn defaults ( & self ) -> Attrs {
425
+ pub fn defaults ( & self ) -> Attrs < ' _ > {
426
426
self . defaults . as_attrs ( )
427
427
}
428
428
@@ -454,7 +454,7 @@ impl AttrsList {
454
454
/// Get the attribute span for an index
455
455
///
456
456
/// This returns a span that contains the index
457
- pub fn get_span ( & self , index : usize ) -> Attrs {
457
+ pub fn get_span ( & self , index : usize ) -> Attrs < ' _ > {
458
458
self . spans
459
459
. get ( & index)
460
460
. map ( |v| v. as_attrs ( ) )
Original file line number Diff line number Diff line change @@ -864,7 +864,7 @@ impl Buffer {
864
864
}
865
865
866
866
/// Get the visible layout runs for rendering and other tasks
867
- pub const fn layout_runs ( & self ) -> LayoutRunIter {
867
+ pub fn layout_runs ( & self ) -> LayoutRunIter < ' _ > {
868
868
LayoutRunIter :: new ( self )
869
869
}
870
870
You can’t perform that action at this time.
0 commit comments