@@ -54,7 +54,7 @@ fn render_images() {
54
54
println ! ( "UNSUPPORTED {}: {}" , path. display( ) , e) ;
55
55
return ;
56
56
}
57
- Err ( err) => panic ! ( format! ( "decoding of {:?} failed with: {}" , path, err) ) ,
57
+ Err ( err) => panic ! ( "decoding of {:?} failed with: {}" , path, err) ,
58
58
} ;
59
59
let mut crc = Crc32 :: new ( ) ;
60
60
crc. update ( & * img) ;
@@ -161,7 +161,7 @@ fn check_references() {
161
161
// This might happen because the testsuite contains unsupported images
162
162
// or because a specific decoder included via a feature.
163
163
Err ( image:: ImageError :: Unsupported ( _) ) => return ,
164
- Err ( err) => panic ! ( format! ( "{}" , err) ) ,
164
+ Err ( err) => panic ! ( "{}" , err) ,
165
165
} ;
166
166
167
167
let ( filename, testsuite) = {
@@ -199,17 +199,17 @@ fn check_references() {
199
199
Ok ( decoder) => decoder,
200
200
Err ( image:: ImageError :: Unsupported ( _) ) => return ,
201
201
Err ( err) => {
202
- panic ! ( format! ( "decoding of {:?} failed with: {}" , img_path, err) )
202
+ panic ! ( "decoding of {:?} failed with: {}" , img_path, err)
203
203
}
204
204
} ;
205
205
206
206
let mut frames = match decoder. into_frames ( ) . collect_frames ( ) {
207
207
Ok ( frames) => frames,
208
208
Err ( image:: ImageError :: Unsupported ( _) ) => return ,
209
- Err ( err) => panic ! ( format! (
209
+ Err ( err) => panic ! (
210
210
"collecting frames of {:?} failed with: {}" ,
211
211
img_path, err
212
- ) ) ,
212
+ ) ,
213
213
} ;
214
214
215
215
// Select a single frame
@@ -228,17 +228,17 @@ fn check_references() {
228
228
Ok ( decoder) => decoder. apng ( ) ,
229
229
Err ( image:: ImageError :: Unsupported ( _) ) => return ,
230
230
Err ( err) => {
231
- panic ! ( format! ( "decoding of {:?} failed with: {}" , img_path, err) )
231
+ panic ! ( "decoding of {:?} failed with: {}" , img_path, err)
232
232
}
233
233
} ;
234
234
235
235
let mut frames = match decoder. into_frames ( ) . collect_frames ( ) {
236
236
Ok ( frames) => frames,
237
237
Err ( image:: ImageError :: Unsupported ( _) ) => return ,
238
- Err ( err) => panic ! ( format! (
238
+ Err ( err) => panic ! (
239
239
"collecting frames of {:?} failed with: {}" ,
240
240
img_path, err
241
- ) ) ,
241
+ ) ,
242
242
} ;
243
243
244
244
// Select a single frame
@@ -262,7 +262,7 @@ fn check_references() {
262
262
// This might happen because the testsuite contains unsupported images
263
263
// or because a specific decoder included via a feature.
264
264
Err ( image:: ImageError :: Unsupported ( _) ) => return ,
265
- Err ( err) => panic ! ( format! ( "decoding of {:?} failed with: {}" , img_path, err) ) ,
265
+ Err ( err) => panic ! ( "decoding of {:?} failed with: {}" , img_path, err) ,
266
266
} ;
267
267
}
268
268
}
0 commit comments