@@ -95,7 +95,7 @@ fn generic_standard_f64() {
9595 let mut rng = test_rng ( ) ;
9696 let dist = ComplexDistribution :: new ( Standard , Standard ) ;
9797 for _ in 0 ..100 {
98- let c: Complex < f64 > = rng. sample ( & dist) ;
98+ let c: Complex < f64 > = rng. sample ( dist) ;
9999 assert ! ( c. re >= 0.0 && c. re < 1.0 ) ;
100100 assert ! ( c. im >= 0.0 && c. im < 1.0 ) ;
101101 }
@@ -111,7 +111,7 @@ fn generic_uniform_f64() {
111111 let dist = ComplexDistribution :: new ( re, im) ;
112112 for _ in 0 ..100 {
113113 // no type annotation required, since `Uniform` only produces one type.
114- let c = rng. sample ( & dist) ;
114+ let c = rng. sample ( dist) ;
115115 assert ! ( c. re >= -100.0 && c. re < 0.0 ) ;
116116 assert ! ( c. im >= 0.0 && c. im < 100.0 ) ;
117117 }
@@ -126,7 +126,7 @@ fn generic_mixed_f64() {
126126 let dist = ComplexDistribution :: new ( re, Standard ) ;
127127 for _ in 0 ..100 {
128128 // no type annotation required, since `Uniform` only produces one type.
129- let c = rng. sample ( & dist) ;
129+ let c = rng. sample ( dist) ;
130130 assert ! ( c. re >= -100.0 && c. re < 0.0 ) ;
131131 assert ! ( c. im >= 0.0 && c. im < 1.0 ) ;
132132 }
@@ -142,7 +142,7 @@ fn generic_uniform_i32() {
142142 let dist = ComplexDistribution :: new ( re, im) ;
143143 for _ in 0 ..100 {
144144 // no type annotation required, since `Uniform` only produces one type.
145- let c = rng. sample ( & dist) ;
145+ let c = rng. sample ( dist) ;
146146 assert ! ( c. re >= -100 && c. re < 0 ) ;
147147 assert ! ( c. im >= 0 && c. im < 100 ) ;
148148 }
0 commit comments