diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-26 17:47:41 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-28 11:32:24 -0800 |
| commit | 107bf96ff0dcc427c1842ffb232d29afaea53ca5 (patch) | |
| tree | 8b335088a404957c76f31111b5e6e72c3dc9131a /src/libstd/time.rs | |
| parent | b171d0ef7b68fed961597d38e6a474d748243987 (diff) | |
| download | rust-107bf96ff0dcc427c1842ffb232d29afaea53ca5.tar.gz rust-107bf96ff0dcc427c1842ffb232d29afaea53ca5.zip | |
librustc: Mark all type implementations public. rs=impl-publicity
Diffstat (limited to 'src/libstd/time.rs')
| -rw-r--r-- | src/libstd/time.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/time.rs b/src/libstd/time.rs index c8379d3ef44..15dea83815b 100644 --- a/src/libstd/time.rs +++ b/src/libstd/time.rs @@ -47,7 +47,7 @@ pub struct Timespec { sec: i64, nsec: i32 } * -1.2 seconds before the epoch is represented by `Timespec { sec: -2_i64, * nsec: 800_000_000_i32 }`. */ -impl Timespec { +pub impl Timespec { static pure fn new(sec: i64, nsec: i32) -> Timespec { assert nsec >= 0 && nsec < NSEC_PER_SEC; Timespec { sec: sec, nsec: nsec } @@ -208,7 +208,7 @@ pub pure fn strftime(format: &str, tm: &Tm) -> ~str { unsafe { do_strftime(format, tm) } } -impl Tm { +pub impl Tm { /// Convert time to the seconds from January 1, 1970 fn to_timespec() -> Timespec { unsafe { |
