@@ -285,7 +285,6 @@ pub type DefaultTimeExtentMaker = StoppedTimeExtentMaker;
285
285
286
286
#[ cfg( test) ]
287
287
mod test {
288
-
289
288
use crate :: shared:: clock:: time_extent:: {
290
289
checked_duration_from_nanos, Base , DefaultTimeExtentMaker , Extent , Make , Multiplier , Product , TimeExtent , MAX , ZERO ,
291
290
} ;
@@ -296,7 +295,8 @@ mod test {
296
295
mod fn_checked_duration_from_nanos {
297
296
use std:: time:: Duration ;
298
297
299
- use super :: * ;
298
+ use crate :: shared:: clock:: time_extent:: checked_duration_from_nanos;
299
+ use crate :: shared:: clock:: time_extent:: test:: TIME_EXTENT_VAL ;
300
300
301
301
const NANOS_PER_SEC : u32 = 1_000_000_000 ;
302
302
@@ -335,11 +335,9 @@ mod test {
335
335
}
336
336
337
337
mod time_extent {
338
- use super :: * ;
339
338
340
339
mod fn_default {
341
-
342
- use super :: * ;
340
+ use crate :: shared:: clock:: time_extent:: { TimeExtent , ZERO } ;
343
341
344
342
#[ test]
345
343
fn it_should_default_initialize_to_zero ( ) {
@@ -348,7 +346,8 @@ mod test {
348
346
}
349
347
350
348
mod fn_from_sec {
351
- use super :: * ;
349
+ use crate :: shared:: clock:: time_extent:: test:: TIME_EXTENT_VAL ;
350
+ use crate :: shared:: clock:: time_extent:: { Multiplier , TimeExtent , ZERO } ;
352
351
353
352
#[ test]
354
353
fn it_should_make_empty_for_zero ( ) {
@@ -364,7 +363,8 @@ mod test {
364
363
}
365
364
366
365
mod fn_new {
367
- use super :: * ;
366
+ use crate :: shared:: clock:: time_extent:: test:: TIME_EXTENT_VAL ;
367
+ use crate :: shared:: clock:: time_extent:: { Base , Extent , Multiplier , TimeExtent , ZERO } ;
368
368
369
369
#[ test]
370
370
fn it_should_make_empty_for_zero ( ) {
@@ -386,7 +386,8 @@ mod test {
386
386
mod fn_increase {
387
387
use std:: num:: IntErrorKind ;
388
388
389
- use super :: * ;
389
+ use crate :: shared:: clock:: time_extent:: test:: TIME_EXTENT_VAL ;
390
+ use crate :: shared:: clock:: time_extent:: { Extent , TimeExtent , ZERO } ;
390
391
391
392
#[ test]
392
393
fn it_should_not_increase_for_zero ( ) {
@@ -413,7 +414,8 @@ mod test {
413
414
mod fn_decrease {
414
415
use std:: num:: IntErrorKind ;
415
416
416
- use super :: * ;
417
+ use crate :: shared:: clock:: time_extent:: test:: TIME_EXTENT_VAL ;
418
+ use crate :: shared:: clock:: time_extent:: { Extent , TimeExtent , ZERO } ;
417
419
418
420
#[ test]
419
421
fn it_should_not_decrease_for_zero ( ) {
@@ -438,7 +440,8 @@ mod test {
438
440
}
439
441
440
442
mod fn_total {
441
- use super :: * ;
443
+ use crate :: shared:: clock:: time_extent:: test:: TIME_EXTENT_VAL ;
444
+ use crate :: shared:: clock:: time_extent:: { Base , Extent , Product , TimeExtent , MAX , ZERO } ;
442
445
443
446
#[ test]
444
447
fn it_should_be_zero_for_zero ( ) {
@@ -485,7 +488,8 @@ mod test {
485
488
}
486
489
487
490
mod fn_total_next {
488
- use super :: * ;
491
+ use crate :: shared:: clock:: time_extent:: test:: TIME_EXTENT_VAL ;
492
+ use crate :: shared:: clock:: time_extent:: { Base , Extent , Product , TimeExtent , MAX , ZERO } ;
489
493
490
494
#[ test]
491
495
fn it_should_be_zero_for_zero ( ) {
@@ -539,10 +543,11 @@ mod test {
539
543
}
540
544
541
545
mod make_time_extent {
542
- use super :: * ;
543
546
544
547
mod fn_now {
545
- use super :: * ;
548
+ use crate :: shared:: clock:: time_extent:: test:: TIME_EXTENT_VAL ;
549
+ use crate :: shared:: clock:: time_extent:: { Base , DefaultTimeExtentMaker , Make , TimeExtent } ;
550
+ use crate :: shared:: clock:: { Current , DurationSinceUnixEpoch , StoppedTime } ;
546
551
547
552
#[ test]
548
553
fn it_should_give_a_time_extent ( ) {
@@ -580,7 +585,9 @@ mod test {
580
585
mod fn_now_after {
581
586
use std:: time:: Duration ;
582
587
583
- use super :: * ;
588
+ use crate :: shared:: clock:: time_extent:: test:: TIME_EXTENT_VAL ;
589
+ use crate :: shared:: clock:: time_extent:: { Base , DefaultTimeExtentMaker , Make } ;
590
+ use crate :: shared:: clock:: { Current , DurationSinceUnixEpoch , StoppedTime } ;
584
591
585
592
#[ test]
586
593
fn it_should_give_a_time_extent ( ) {
@@ -617,7 +624,8 @@ mod test {
617
624
mod fn_now_before {
618
625
use std:: time:: Duration ;
619
626
620
- use super :: * ;
627
+ use crate :: shared:: clock:: time_extent:: { Base , DefaultTimeExtentMaker , Make , TimeExtent } ;
628
+ use crate :: shared:: clock:: { Current , DurationSinceUnixEpoch , StoppedTime } ;
621
629
622
630
#[ test]
623
631
fn it_should_give_a_time_extent ( ) {
0 commit comments