We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Duration
1 parent 83fcf11 commit c8bc729Copy full SHA for c8bc729
time/src/quickcheck.rs
@@ -77,9 +77,9 @@ impl Arbitrary for Duration {
77
78
fn shrink(&self) -> Box<dyn Iterator<Item = Self>> {
79
Box::new(
80
- (self.subsec_nanoseconds_ranged(), self.whole_seconds())
+ (self.whole_seconds(), self.subsec_nanoseconds_ranged())
81
.shrink()
82
- .map(|(mut nanoseconds, seconds)| {
+ .map(|(seconds, mut nanoseconds)| {
83
// Coerce the sign if necessary.
84
if (seconds > 0 && nanoseconds.get() < 0)
85
|| (seconds < 0 && nanoseconds.get() > 0)
0 commit comments