@@ -18,7 +18,7 @@ pub trait Module: Downcast + Debug + Send + Sync {
1818 true
1919 }
2020
21- fn view ( & self , variant : & str , anchor : & Anchor , context : & Context ) -> Element ;
21+ fn view ( & self , variant : & str , anchor : & Anchor , context : & Context ) -> Element < ' _ > ;
2222
2323 #[ allow( unused_variables) ]
2424 fn sources ( & self , variant : & str ) -> Vec < & String > {
@@ -57,10 +57,10 @@ mod dummy {
5757 }
5858 fn view (
5959 & self ,
60- variant : & str ,
61- anchor : & smithay_client_toolkit:: shell:: wlr_layer:: Anchor ,
62- context : & super :: Context ,
63- ) -> Element {
60+ _variant : & str ,
61+ _anchor : & smithay_client_toolkit:: shell:: wlr_layer:: Anchor ,
62+ _context : & super :: Context ,
63+ ) -> Element < ' _ > {
6464 text ! ( "This is a dummy module!" ) . into ( )
6565 }
6666 }
@@ -82,9 +82,9 @@ mod custom {
8282 }
8383
8484 struct CustomModule {
85- sources : Vec < String > ,
85+ _sources : Vec < String > ,
8686 style : ContainerStyle ,
87- config : Table ,
87+ _config : Table ,
8888 token : Box < dyn Token < Message > + Send + Sync > ,
8989 }
9090
@@ -103,7 +103,7 @@ mod custom {
103103 variant : & str ,
104104 anchor : & smithay_client_toolkit:: shell:: wlr_layer:: Anchor ,
105105 context : & super :: Context ,
106- ) -> Element {
106+ ) -> Element < ' _ > {
107107 let Some ( custom) = self . modules . get ( variant) else {
108108 log:: error!( "Invalid variant name of custom module: {variant}" ) ;
109109 return "Invalid variant name" . into ( ) ;
@@ -127,10 +127,10 @@ mod custom {
127127 self . modules . insert (
128128 String :: from ( variant) ,
129129 CustomModule {
130- sources : vec ! [ ] ,
130+ _sources : vec ! [ ] ,
131131 style,
132132 token : engine. render_token ( format) ,
133- config,
133+ _config : config,
134134 } ,
135135 ) ;
136136 }
0 commit comments