about summary refs log tree commit diff
path: root/src/libstd/num
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-12-19 16:02:31 +0000
committerbors <bors@rust-lang.org>2014-12-19 16:02:31 +0000
commit95c2ed31aeb66b2662933200dbfd661a573b1f49 (patch)
tree3e397ee769c09211083f8aa12377e41104575f7f /src/libstd/num
parentbd90b936d73c0ea2c261cd8e7b9c43764cb2da05 (diff)
parentf975b10310b2f38a5ac1e50f30778b85ed963849 (diff)
downloadrust-95c2ed31aeb66b2662933200dbfd661a573b1f49.tar.gz
rust-95c2ed31aeb66b2662933200dbfd661a573b1f49.zip
auto merge of #19867 : japaric/rust/deriving-copy, r=acrichto
r? @alexcrichton 
Diffstat (limited to 'src/libstd/num')
-rw-r--r--src/libstd/num/strconv.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs
index 2b319640d1b..016c4bd532a 100644
--- a/src/libstd/num/strconv.rs
+++ b/src/libstd/num/strconv.rs
@@ -17,7 +17,6 @@ pub use self::SignificantDigits::*;
 pub use self::SignFormat::*;
 
 use char::{mod, Char};
-use kinds::Copy;
 use num::{mod, Int, Float, FPNaN, FPInfinite, ToPrimitive};
 use ops::FnMut;
 use slice::{SliceExt, CloneSliceExt};
@@ -26,6 +25,7 @@ use string::String;
 use vec::Vec;
 
 /// A flag that specifies whether to use exponential (scientific) notation.
+#[deriving(Copy)]
 pub enum ExponentFormat {
     /// Do not use exponential notation.
     ExpNone,
@@ -38,10 +38,9 @@ pub enum ExponentFormat {
     ExpBin,
 }
 
-impl Copy for ExponentFormat {}
-
 /// The number of digits used for emitting the fractional part of a number, if
 /// any.
+#[deriving(Copy)]
 pub enum SignificantDigits {
     /// All calculable digits will be printed.
     ///
@@ -57,9 +56,8 @@ pub enum SignificantDigits {
     DigExact(uint)
 }
 
-impl Copy for SignificantDigits {}
-
 /// How to emit the sign of a number.
+#[deriving(Copy)]
 pub enum SignFormat {
     /// No sign will be printed. The exponent sign will also be emitted.
     SignNone,
@@ -71,8 +69,6 @@ pub enum SignFormat {
     SignAll,
 }
 
-impl Copy for SignFormat {}
-
 /// Converts an integral number to its string representation as a byte vector.
 /// This is meant to be a common base implementation for all integral string
 /// conversion functions like `to_string()` or `to_str_radix()`.