@@ -10,7 +10,7 @@ pub struct DsModel<'a> {
1010 pub tensors : Vec < Box < Ast < ' a > > > ,
1111}
1212
13- impl < ' a > fmt:: Display for DsModel < ' a > {
13+ impl fmt:: Display for DsModel < ' _ > {
1414 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1515 if self . inputs . len ( ) > 1 {
1616 write ! ( f, "in = [" ) ?;
@@ -56,7 +56,7 @@ pub struct Equation<'a> {
5656 pub rhs : Box < Ast < ' a > > ,
5757}
5858
59- impl < ' a > fmt:: Display for Equation < ' a > {
59+ impl fmt:: Display for Equation < ' _ > {
6060 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
6161 write ! ( f, "{} = {}" , self . lhs, self . rhs, )
6262 }
@@ -75,7 +75,7 @@ pub struct Name<'a> {
7575 pub is_tangent : bool ,
7676}
7777
78- impl < ' a > fmt:: Display for Name < ' a > {
78+ impl fmt:: Display for Name < ' _ > {
7979 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
8080 if self . is_tangent {
8181 write ! ( f, "d_" ) ?;
@@ -109,7 +109,7 @@ pub struct Domain<'a> {
109109 pub dim : usize ,
110110}
111111
112- impl < ' a > fmt:: Display for Domain < ' a > {
112+ impl fmt:: Display for Domain < ' _ > {
113113 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
114114 write ! ( f, "{}" , self . range) . and_then ( |_| {
115115 if self . dim == 1 {
@@ -189,7 +189,7 @@ impl<'a> Tensor<'a> {
189189 }
190190}
191191
192- impl < ' a > fmt:: Display for Tensor < ' a > {
192+ impl fmt:: Display for Tensor < ' _ > {
193193 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
194194 write ! ( f, "{}" , self . name) ?;
195195 if !self . indices . is_empty ( ) {
@@ -213,7 +213,7 @@ pub struct Indice<'a> {
213213 pub sep : Option < & ' a str > ,
214214}
215215
216- impl < ' a > fmt:: Display for Indice < ' a > {
216+ impl fmt:: Display for Indice < ' _ > {
217217 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
218218 write ! ( f, "{}" , self . first) ?;
219219 if let Some ( ref last) = self . last {
@@ -230,7 +230,7 @@ pub struct Vector<'a> {
230230 pub data : Vec < Box < Ast < ' a > > > ,
231231}
232232
233- impl < ' a > fmt:: Display for Vector < ' a > {
233+ impl fmt:: Display for Vector < ' _ > {
234234 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
235235 write ! ( f, "(" ) ?;
236236 for ( i, elmt) in self . data . iter ( ) . enumerate ( ) {
@@ -279,7 +279,7 @@ pub struct NamedGradient<'a> {
279279 pub gradient_wrt : Box < Ast < ' a > > ,
280280}
281281
282- impl < ' a > fmt:: Display for NamedGradient < ' a > {
282+ impl fmt:: Display for NamedGradient < ' _ > {
283283 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
284284 write ! ( f, "d{}d{}" , self . gradient_of, self . gradient_wrt)
285285 }
@@ -913,7 +913,7 @@ impl<'a> Ast<'a> {
913913 }
914914}
915915
916- impl < ' a > fmt:: Display for Ast < ' a > {
916+ impl fmt:: Display for Ast < ' _ > {
917917 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
918918 match & self . kind {
919919 AstKind :: Model ( model) => {
0 commit comments