Skip to content

Commit 1f41140

Browse files
committed
Implement Clone and DeepClone for time types.
1 parent 14885da commit 1f41140

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libextra/time.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub mod rustrt {
3434
}
3535

3636
/// A record specifying a time value in seconds and nanoseconds.
37-
#[deriving(Eq, Encodable, Decodable)]
37+
#[deriving(Clone, DeepClone, Eq, Encodable, Decodable)]
3838
pub struct Timespec { sec: i64, nsec: i32 }
3939

4040
/*
@@ -100,7 +100,7 @@ pub fn tzset() {
100100
}
101101
}
102102

103-
#[deriving(Eq, Encodable, Decodable)]
103+
#[deriving(Clone, DeepClone, Eq, Encodable, Decodable)]
104104
pub struct Tm {
105105
tm_sec: i32, // seconds after the minute ~[0-60]
106106
tm_min: i32, // minutes after the hour ~[0-59]

0 commit comments

Comments
 (0)