@@ -291,12 +291,6 @@ impl<'a, T: Rand, R: Rng> Iterator for Generator<'a, T, R> {
291
291
}
292
292
}
293
293
294
- impl < ' a , T , R > fmt:: Debug for Generator < ' a , T , R > {
295
- default fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
296
- f. pad ( "Generator { .. }" )
297
- }
298
- }
299
-
300
294
impl < ' a , T , R : fmt:: Debug > fmt:: Debug for Generator < ' a , T , R > {
301
295
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
302
296
f. debug_struct ( "Generator" )
@@ -323,12 +317,6 @@ impl<'a, R: Rng> Iterator for AsciiGenerator<'a, R> {
323
317
}
324
318
}
325
319
326
- impl < ' a , R > fmt:: Debug for AsciiGenerator < ' a , R > {
327
- default fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
328
- f. pad ( "AsciiGenerator { .. }" )
329
- }
330
- }
331
-
332
320
impl < ' a , R : fmt:: Debug > fmt:: Debug for AsciiGenerator < ' a , R > {
333
321
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
334
322
f. debug_struct ( "AsciiGenerator" )
@@ -446,12 +434,6 @@ impl Rand for XorShiftRng {
446
434
/// `[0,1)`.
447
435
pub struct Open01 < F > ( pub F ) ;
448
436
449
- impl < F > fmt:: Debug for Open01 < F > {
450
- default fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
451
- f. pad ( "Open01 { .. }" )
452
- }
453
- }
454
-
455
437
impl < F : fmt:: Debug > fmt:: Debug for Open01 < F > {
456
438
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
457
439
f. debug_tuple ( "Open01" )
@@ -468,12 +450,6 @@ impl<F: fmt::Debug> fmt::Debug for Open01<F> {
468
450
/// `[0,1)`.
469
451
pub struct Closed01 < F > ( pub F ) ;
470
452
471
- impl < F > fmt:: Debug for Closed01 < F > {
472
- default fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
473
- f. pad ( "Closed01 { .. }" )
474
- }
475
- }
476
-
477
453
impl < F : fmt:: Debug > fmt:: Debug for Closed01 < F > {
478
454
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
479
455
f. debug_tuple ( "Closed01" )
0 commit comments