@@ -144,7 +144,7 @@ impl Display for SingleAggregate {
144
144
Self :: Min => "min" ,
145
145
} ;
146
146
147
- write ! ( fmt, "{}" , term )
147
+ write ! ( fmt, "{term}" )
148
148
}
149
149
}
150
150
@@ -182,7 +182,7 @@ impl FromStr for SingleAggregate {
182
182
"high minus low" => Ok ( Self :: HighMinusLow ) ,
183
183
"stddev" => Ok ( Self :: StdDev ) ,
184
184
"var" => Ok ( Self :: Var ) ,
185
- x => Err ( format ! ( "Unknown aggregate `{}`" , x ) ) ,
185
+ x => Err ( format ! ( "Unknown aggregate `{x }`" ) ) ,
186
186
}
187
187
}
188
188
}
@@ -226,12 +226,12 @@ impl From<&'static str> for Aggregate {
226
226
impl Display for Aggregate {
227
227
fn fmt ( & self , fmt : & mut std:: fmt:: Formatter < ' _ > ) -> std:: result:: Result < ( ) , std:: fmt:: Error > {
228
228
match self {
229
- Self :: SingleAggregate ( x) => write ! ( fmt, "{}" , x ) ?,
229
+ Self :: SingleAggregate ( x) => write ! ( fmt, "{x}" ) ?,
230
230
Self :: MultiAggregate ( MultiAggregate :: WeightedMean , x) => {
231
- write ! ( fmt, "weighted mean by {}" , x ) ?
231
+ write ! ( fmt, "weighted mean by {x}" ) ?
232
232
} ,
233
- Self :: MultiAggregate ( MultiAggregate :: MaxBy , x) => write ! ( fmt, "max by {}" , x ) ?,
234
- Self :: MultiAggregate ( MultiAggregate :: MinBy , x) => write ! ( fmt, "min by {}" , x ) ?,
233
+ Self :: MultiAggregate ( MultiAggregate :: MaxBy , x) => write ! ( fmt, "max by {x}" ) ?,
234
+ Self :: MultiAggregate ( MultiAggregate :: MinBy , x) => write ! ( fmt, "min by {x}" ) ?,
235
235
} ;
236
236
Ok ( ( ) )
237
237
}
0 commit comments