@@ -84,10 +84,10 @@ pub struct UpdateCtx<'a, 'b> {
84
84
/// As of now, the main service provided is access to a factory for
85
85
/// creating text layout objects, which are likely to be useful
86
86
/// during widget layout.
87
- pub struct LayoutCtx < ' a , ' b : ' a , ' c > {
88
- pub ( crate ) root_state : & ' a mut ContextState < ' c > ,
87
+ pub struct LayoutCtx < ' a , ' b , ' c : ' a > {
88
+ pub ( crate ) root_state : & ' a mut ContextState < ' b > ,
89
89
pub ( crate ) widget_state : & ' a mut WidgetState ,
90
- pub ( crate ) text_factory : & ' a mut Text < ' b > ,
90
+ pub ( crate ) text_factory : & ' a mut Text < ' c > ,
91
91
pub ( crate ) mouse_pos : Option < Point > ,
92
92
}
93
93
@@ -105,7 +105,7 @@ pub(crate) struct ZOrderPaintOp {
105
105
/// This struct is expected to grow, for example to include the
106
106
/// "damage region" indicating that only a subset of the entire
107
107
/// widget hierarchy needs repainting.
108
- pub struct PaintCtx < ' a , ' b : ' a > {
108
+ pub struct PaintCtx < ' a , ' b > {
109
109
/// The render context for actually painting.
110
110
pub render_ctx : & ' a mut Piet < ' b > ,
111
111
pub window_id : WindowId ,
@@ -128,7 +128,7 @@ pub struct PaintCtx<'a, 'b: 'a> {
128
128
#[ derive( Debug , Clone ) ]
129
129
pub struct Region ( Rect ) ;
130
130
131
- impl < ' a , ' b > EventCtx < ' a , ' b > {
131
+ impl EventCtx < ' _ , ' _ > {
132
132
#[ deprecated( since = "0.5.0" , note = "use request_paint instead" ) ]
133
133
pub fn invalidate ( & mut self ) {
134
134
self . request_paint ( ) ;
@@ -454,7 +454,7 @@ impl<'a, 'b> EventCtx<'a, 'b> {
454
454
}
455
455
}
456
456
457
- impl < ' a , ' b > LifeCycleCtx < ' a , ' b > {
457
+ impl LifeCycleCtx < ' _ , ' _ > {
458
458
#[ deprecated( since = "0.5.0" , note = "use request_paint instead" ) ]
459
459
pub fn invalidate ( & mut self ) {
460
460
self . request_paint ( ) ;
@@ -688,9 +688,9 @@ impl<'a, 'b> UpdateCtx<'a, 'b> {
688
688
}
689
689
}
690
690
691
- impl < ' a , ' b , ' c > LayoutCtx < ' a , ' b , ' c > {
691
+ impl < ' c > LayoutCtx < ' _ , ' _ , ' c > {
692
692
/// Get an object which can create text layouts.
693
- pub fn text ( & mut self ) -> & mut Text < ' b > {
693
+ pub fn text ( & mut self ) -> & mut Text < ' c > {
694
694
& mut self . text_factory
695
695
}
696
696
@@ -715,7 +715,7 @@ impl<'a, 'b, 'c> LayoutCtx<'a, 'b, 'c> {
715
715
}
716
716
}
717
717
718
- impl < ' a , ' b : ' a > PaintCtx < ' a , ' b > {
718
+ impl PaintCtx < ' _ , ' _ > {
719
719
/// get the `WidgetId` of the current widget.
720
720
pub fn widget_id ( & self ) -> WidgetId {
721
721
self . widget_state . id
0 commit comments