From 930885d5e5f817e3d7609f93d5ba89b1abebfaf4 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 9 Aug 2013 01:25:24 -0700 Subject: Forbid pub/priv where it has no effect Closes #5495 --- src/libstd/num/num.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/num') diff --git a/src/libstd/num/num.rs b/src/libstd/num/num.rs index 3af1666b4da..9e72b355bf9 100644 --- a/src/libstd/num/num.rs +++ b/src/libstd/num/num.rs @@ -414,11 +414,11 @@ impl_num_cast!(f64, to_f64) impl_num_cast!(float, to_float) pub trait ToStrRadix { - pub fn to_str_radix(&self, radix: uint) -> ~str; + fn to_str_radix(&self, radix: uint) -> ~str; } pub trait FromStrRadix { - pub fn from_str_radix(str: &str, radix: uint) -> Option; + fn from_str_radix(str: &str, radix: uint) -> Option; } /// Calculates a power to a given radix, optimized for uint `pow` and `radix`. -- cgit 1.4.1-3-g733a5