Skip to content

Commit f2423e9

Browse files
bors[bot]strakecuviper
committed
Merge #18
18: lcm(0, 0) = 0 r=cuviper a=strake Co-authored-by: M Farkas-Dyck <[email protected]> Co-authored-by: Josh Stone <[email protected]>
2 parents fb097cb + 8307b96 commit f2423e9

File tree

4 files changed

+106
-86
lines changed

4 files changed

+106
-86
lines changed

benches/gcd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl_gcd_old_for_usize!(usize);
115115
impl_gcd_old_for_usize!(u128);
116116

117117
/// Return an iterator that yields all Fibonacci numbers fitting into a u128.
118-
fn fibonacci() -> impl Iterator<Item=u128> {
118+
fn fibonacci() -> impl Iterator<Item = u128> {
119119
(0..185).scan((0, 1), |&mut (ref mut a, ref mut b), _| {
120120
let tmp = *a;
121121
*a = *b;

benches/roots.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ use test::{black_box, Bencher};
1313

1414
trait BenchInteger: Integer + PrimInt + WrappingAdd + WrappingMul + 'static {}
1515

16-
impl<T> BenchInteger for T
17-
where
18-
T: Integer + PrimInt + WrappingAdd + WrappingMul + 'static,
19-
{
20-
}
16+
impl<T> BenchInteger for T where T: Integer + PrimInt + WrappingAdd + WrappingMul + 'static {}
2117

2218
fn bench<T, F>(b: &mut Bencher, v: &[T], f: F, n: u32)
2319
where

0 commit comments

Comments
 (0)