From 0a04ae1aa91114c3d7f5a750d999adad8cb5788d Mon Sep 17 00:00:00 2001 From: Kang Seonghoon Date: Fri, 21 Nov 2014 16:17:47 +0900 Subject: [PATCH] 0.1.1: language changes, updated documentations. - `std::fmt::WriteError` is now `std::fmt::Error`. - abandoned rust-ci for documentations (sorry, but it didn't work nowdays ;_;), we are now publishing directly to Github pages. --- Cargo.toml | 3 ++- README.md | 2 +- src/format.rs | 2 +- src/lib.rs | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0515204..6a0cd81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "chrono" -version = "0.1.0" +version = "0.1.1" authors = ["Kang Seonghoon "] description = "Date and time library for Rust" homepage = "https://github.com/lifthrasiir/rust-chrono" +documentation = "https://lifthrasiir.github.io/rust-chrono/chrono/" repository = "https://github.com/lifthrasiir/rust-chrono" readme = "README.md" license = "MIT/Apache-2.0" diff --git a/README.md b/README.md index c5e0d70..e85fb84 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Rust-chrono Date and time handling for Rust. -[Complete Documentation](http://rust-ci.org/lifthrasiir/rust-chrono/doc/chrono/) +[Complete Documentation](https://lifthrasiir.github.io/rust-chrono/chrono/) ```rust // find out if the doomsday rule is correct! diff --git a/src/format.rs b/src/format.rs index 5a9ce0f..efb5d57 100644 --- a/src/format.rs +++ b/src/format.rs @@ -212,7 +212,7 @@ impl<'a> DelayedFormat<'a> { impl<'a> fmt::Show for DelayedFormat<'a> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let ret = format(f, self.date.as_ref(), self.time.as_ref(), self.off.as_ref(), self.fmt); - ret.map_err(|_| fmt::WriteError) // XXX + ret.map_err(|_| fmt::Error) // we don't have any good means to pass detailed errors... } } diff --git a/src/lib.rs b/src/lib.rs index 479f963..632fc41 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,6 +8,7 @@ Experimental date and time handling for Rust. #![comment = "Date and time library for Rust"] #![license = "MIT"] +#![doc(html_root_url = "https://lifthrasiir.github.io/rust-chrono/")] #![feature(macro_rules)] #![deny(missing_docs)]