diff --git a/src/libcore/num/float.rs b/src/libcore/num/float.rs index d5f22e6b056..92decce325a 100644 --- a/src/libcore/num/float.rs +++ b/src/libcore/num/float.rs @@ -798,7 +798,7 @@ mod tests { } #[test] - pub fn test_signed() { + fn test_signed() { assert_eq!(infinity.abs(), infinity); assert_eq!(1f.abs(), 1f); assert_eq!(0f.abs(), 0f); diff --git a/src/libcore/num/int-template.rs b/src/libcore/num/int-template.rs index 75d170118e6..56b7616c255 100644 --- a/src/libcore/num/int-template.rs +++ b/src/libcore/num/int-template.rs @@ -553,10 +553,7 @@ mod tests { /// - `qr`: quotient and remainder /// #[cfg(test)] - fn test_division_rule(nd: (T,T), qr: (T,T)) { - let (n,d) = nd, - (q,r) = qr; - + fn test_division_rule((n,d): (T,T), (q,r): (T,T)) { assert_eq!(d * q + r, n); }