From a5bd6c040e187b6e5584949ed2ab601919631658 Mon Sep 17 00:00:00 2001 From: Kang Seonghoon Date: Sat, 21 Mar 2015 22:01:52 +0900 Subject: [PATCH] 0.2.6: language changes and dependency updates. - `range` is now deprecated. - `str_char` feature gate is split out from `collections`. --- Cargo.toml | 4 ++-- README.md | 2 +- src/lib.rs | 4 ++-- src/naive/date.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dec30bd..9798446 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chrono" -version = "0.2.5" +version = "0.2.6" authors = ["Kang Seonghoon "] description = "Date and time library for Rust" @@ -15,5 +15,5 @@ license = "MIT/Apache-2.0" name = "chrono" [dependencies] -time = "0.1.19" +time = "0.1.20" diff --git a/README.md b/README.md index bbfe140..0881591 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[Chrono][doc] 0.2.5 +[Chrono][doc] 0.2.6 =================== [![Chrono on Travis CI][travis-image]][travis] diff --git a/src/lib.rs b/src/lib.rs index 764721b..bb70403 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ /*! -# Chrono 0.2.5 +# Chrono 0.2.6 Date and time handling for Rust. (also known as `rust-chrono`) It aims to be a feature-complete superset of the [time](https://github.com/rust-lang/time) library. @@ -266,7 +266,7 @@ Advanced time zone handling is not yet supported (but is planned in 0.3). #![doc(html_root_url = "https://lifthrasiir.github.io/rust-chrono/")] -#![feature(core, collections, std_misc)] // lib stability features as per RFC #507 +#![feature(core, str_char, std_misc)] // lib stability features as per RFC #507 #![cfg_attr(test, feature(test))] // ditto #![deny(missing_docs)] diff --git a/src/naive/date.rs b/src/naive/date.rs index e36b734..1fab089 100644 --- a/src/naive/date.rs +++ b/src/naive/date.rs @@ -1537,7 +1537,7 @@ mod internals { #[bench] fn bench_year_flags_from_year(bh: &mut test::Bencher) { bh.iter(|| { - for year in range(-999i32, 1000) { + for year in -999i32..1000 { YearFlags::from_year(year); } });