sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rs
This commit is contained in:
@@ -727,7 +727,7 @@ mod tests {
|
||||
test_checked_next_power_of_two! { test_checked_next_power_of_two_u64, u64 }
|
||||
test_checked_next_power_of_two! { test_checked_next_power_of_two_uint, uint }
|
||||
|
||||
#[deriving(PartialEq, Show)]
|
||||
#[derive(PartialEq, Show)]
|
||||
struct Value { x: int }
|
||||
|
||||
impl ToPrimitive for Value {
|
||||
|
||||
@@ -26,7 +26,7 @@ use string::String;
|
||||
use vec::Vec;
|
||||
|
||||
/// A flag that specifies whether to use exponential (scientific) notation.
|
||||
#[deriving(Copy)]
|
||||
#[derive(Copy)]
|
||||
pub enum ExponentFormat {
|
||||
/// Do not use exponential notation.
|
||||
ExpNone,
|
||||
@@ -41,7 +41,7 @@ pub enum ExponentFormat {
|
||||
|
||||
/// The number of digits used for emitting the fractional part of a number, if
|
||||
/// any.
|
||||
#[deriving(Copy)]
|
||||
#[derive(Copy)]
|
||||
pub enum SignificantDigits {
|
||||
/// All calculable digits will be printed.
|
||||
///
|
||||
@@ -58,7 +58,7 @@ pub enum SignificantDigits {
|
||||
}
|
||||
|
||||
/// How to emit the sign of a number.
|
||||
#[deriving(Copy)]
|
||||
#[derive(Copy)]
|
||||
pub enum SignFormat {
|
||||
/// No sign will be printed. The exponent sign will also be emitted.
|
||||
SignNone,
|
||||
|
||||
Reference in New Issue
Block a user