Update chrono: 0.3 -> 0.4

This commit is contained in:
Matthias Beyer 2017-07-15 20:14:18 +02:00
parent 3c07f47c4a
commit aee7772665
5 changed files with 13 additions and 13 deletions

View file

@ -14,7 +14,7 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org" homepage = "http://imag-pim.org"
[dependencies] [dependencies]
chrono = "0.3" chrono = "0.4"
toml-query = "0.3" toml-query = "0.3"
lazy_static = "0.2" lazy_static = "0.2"
toml = "0.4" toml = "0.4"

View file

@ -19,7 +19,7 @@
use std::path::PathBuf; use std::path::PathBuf;
use chrono::naive::datetime::NaiveDateTime; use chrono::naive::NaiveDateTime;
use chrono::Datelike; use chrono::Datelike;
use chrono::Timelike; use chrono::Timelike;
@ -133,8 +133,8 @@ mod test {
use datepath::accuracy::Accuracy; use datepath::accuracy::Accuracy;
use datepath::format::Format; use datepath::format::Format;
use chrono::naive::date::NaiveDate; use chrono::naive::NaiveDate;
use chrono::naive::datetime::NaiveDateTime; use chrono::naive::NaiveDateTime;
#[test] #[test]
fn test_compiler_compile_simple() { fn test_compiler_compile_simple() {

View file

@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
// //
use chrono::naive::datetime::NaiveDateTime; use chrono::naive::NaiveDateTime;
use libimagstore::storeid::StoreId; use libimagstore::storeid::StoreId;
use datepath::result::Result; use datepath::result::Result;

View file

@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
// //
use chrono::naive::datetime::NaiveDateTime; use chrono::naive::NaiveDateTime;
use toml_query::delete::TomlValueDeleteExt; use toml_query::delete::TomlValueDeleteExt;
use toml_query::insert::TomlValueInsertExt; use toml_query::insert::TomlValueInsertExt;
use toml_query::read::TomlValueReadExt; use toml_query::read::TomlValueReadExt;
@ -219,9 +219,9 @@ mod tests {
use libimagstore::store::Store; use libimagstore::store::Store;
use chrono::naive::datetime::NaiveDateTime; use chrono::naive::NaiveDateTime;
use chrono::naive::date::NaiveDate; use chrono::naive::NaiveDate;
use chrono::naive::time::NaiveTime; use chrono::naive::NaiveTime;
pub fn get_store() -> Store { pub fn get_store() -> Store {
Store::new(PathBuf::from("/"), None).unwrap() Store::new(PathBuf::from("/"), None).unwrap()

View file

@ -38,7 +38,7 @@ pub mod result {
pub type Result<T> = RResult<T, DateTimeRangeError>; pub type Result<T> = RResult<T, DateTimeRangeError>;
} }
use chrono::naive::datetime::NaiveDateTime; use chrono::naive::NaiveDateTime;
use libimagerror::into::IntoError; use libimagerror::into::IntoError;
use self::result::Result; use self::result::Result;
@ -69,9 +69,9 @@ impl DateTimeRange {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use chrono::naive::datetime::NaiveDateTime; use chrono::naive::NaiveDateTime;
use chrono::naive::date::NaiveDate; use chrono::naive::NaiveDate;
use chrono::naive::time::NaiveTime; use chrono::naive::NaiveTime;
use super::DateTimeRange; use super::DateTimeRange;