We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c693ca6 commit f6a2327Copy full SHA for f6a2327
gen/src/arbitrary_impls.rs
@@ -69,13 +69,13 @@ impl Arbitrary for Hoc {
69
g: &mut quickcheck::Gen,
70
) -> (Option<TransportMode>, Option<TransportMode>) {
71
let inbound = Some(TransportMode::arbitrary(g));
72
- let outbound = Some(TransportMode::arbitrary(g));
+ let mut outbound = Some(TransportMode::arbitrary(g));
73
74
- if inbound == outbound {
75
- (inbound, Some(TransportMode::arbitrary(g)))
76
- } else {
77
- (inbound, outbound)
+ while inbound == outbound {
+ outbound = Some(TransportMode::arbitrary(g));
78
}
+
+ (inbound, outbound)
79
80
81
let hub_type = HubType::arbitrary(g);
0 commit comments