@@ -313,17 +313,17 @@ mod tests {
313
313
314
314
}
315
315
316
- fn test_time < T : Eq + fmt:: String + Clone + :: Time > ( i : T ) {
317
- debug ! ( "test_time: {}, {}" , i, time_str( i. clone( ) ) ) ;
316
+ fn test_time < T : Eq + fmt:: Debug + Clone + :: Time > ( i : T ) {
317
+ debug ! ( "test_time: {:? }, {:? }" , i, time_str( i. clone( ) ) ) ;
318
318
let tm = i. tm ( ) ;
319
319
let i2: T = :: Time :: from_tm ( & tm) ;
320
320
if i2 != i {
321
- panic ! ( format!( "test_time failed for: {}, {}, {:?}" , i, i2, tm) )
321
+ panic ! ( format!( "test_time failed for: {:? }, {:? }, {:?}" , i, i2, tm) )
322
322
}
323
323
let ts = i. timespec ( ) ;
324
324
let i2: T = :: Time :: from_timespec ( ts) ;
325
325
if i2 != i {
326
- panic ! ( format!( "test_time failed for: {}, {}, {:?}" , i, i2, ts) )
326
+ panic ! ( format!( "test_time failed for: {:? }, {:? }, {:?}" , i, i2, ts) )
327
327
}
328
328
}
329
329
@@ -337,17 +337,17 @@ mod tests {
337
337
test_time ( -86399999999999_i64 ) ;
338
338
}
339
339
340
- fn test_date < T : Eq + fmt:: String + Clone + :: Date > ( i : T ) {
341
- debug ! ( "test_date: {} {}" , i, date_str( i. clone( ) ) ) ;
340
+ fn test_date < T : Eq + fmt:: Debug + Clone + :: Date > ( i : T ) {
341
+ debug ! ( "test_date: {:? } {:? }" , i, date_str( i. clone( ) ) ) ;
342
342
let tm = i. tm ( ) ;
343
343
let i2: T = :: Date :: from_tm ( & tm) ;
344
344
if i2 != i {
345
- panic ! ( format!( "test_date failed for: {}, {}, {:?}" , i, i2, tm) )
345
+ panic ! ( format!( "test_date failed for: {:? }, {:? }, {:?}" , i, i2, tm) )
346
346
}
347
347
let ts = i. timespec ( ) ;
348
348
let i2: T = :: Date :: from_timespec ( ts) ;
349
349
if i2 != i {
350
- panic ! ( format!( "test_date failed for: {}, {}, {:?}" , i, i2, ts) )
350
+ panic ! ( format!( "test_date failed for: {:? }, {:? }, {:?}" , i, i2, ts) )
351
351
}
352
352
}
353
353
0 commit comments