diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-02-05 11:44:16 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-02-05 11:51:32 +0100 |
commit | 0bb5a95dc79814756b47c896da7021c984220a26 (patch) | |
tree | 24f7445c6a5c295b66e00c7f137945b2512f75ec /src/utils/dateutil.rs | |
parent | 832a9b4699f6df3ef934fcc5c0c5680c3a97ea22 (diff) |
move to Rust Edition 2018
Diffstat (limited to 'src/utils/dateutil.rs')
-rw-r--r-- | src/utils/dateutil.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/dateutil.rs b/src/utils/dateutil.rs index 6dc9730..981dd5a 100644 --- a/src/utils/dateutil.rs +++ b/src/utils/dateutil.rs @@ -2,7 +2,7 @@ use chrono::*; use std::path::PathBuf; use std::env; -use utils::fileutil; +use crate::utils::fileutil; pub fn date_from_str(date_str: &str) -> ParseResult<Date<Local>> { if date_str == "today" || date_str == "now" { @@ -54,7 +54,7 @@ pub fn now() -> DateTime<Utc> { #[cfg(test)] pub fn now() -> DateTime<Utc> { - use testdata; + use crate::testdata; *testdata::now_test } @@ -83,7 +83,7 @@ pub fn datetime_from_timestamp(timestamp: &str) -> Option<DateTime<Local>> { mod tests { use super::*; - use testdata; + use crate::testdata; #[test] fn test_date_from_str() { |