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/icalwrap | |
parent | 832a9b4699f6df3ef934fcc5c0c5680c3a97ea22 (diff) |
move to Rust Edition 2018
Diffstat (limited to 'src/icalwrap')
-rw-r--r-- | src/icalwrap/icalcomponent.rs | 6 | ||||
-rw-r--r-- | src/icalwrap/icalduration.rs | 2 | ||||
-rw-r--r-- | src/icalwrap/icalproperty.rs | 2 | ||||
-rw-r--r-- | src/icalwrap/icaltime.rs | 6 | ||||
-rw-r--r-- | src/icalwrap/icaltimezone.rs | 6 | ||||
-rw-r--r-- | src/icalwrap/icalvcalendar.rs | 4 | ||||
-rw-r--r-- | src/icalwrap/icalvevent.rs | 4 |
7 files changed, 15 insertions, 15 deletions
diff --git a/src/icalwrap/icalcomponent.rs b/src/icalwrap/icalcomponent.rs index 43aeacc..4da7eba 100644 --- a/src/icalwrap/icalcomponent.rs +++ b/src/icalwrap/icalcomponent.rs @@ -1,7 +1,7 @@ use std::ffi::CString; use super::IcalProperty; -use ical; +use crate::ical; pub trait IcalComponent { fn get_ptr(&self) -> *mut ical::icalcomponent; @@ -77,8 +77,8 @@ pub trait IcalComponent { #[cfg(test)] mod tests { use super::*; - use testdata; - use icalwrap::IcalVCalendar; + use crate::testdata; + use crate::icalwrap::IcalVCalendar; #[test] fn get_property_test() { diff --git a/src/icalwrap/icalduration.rs b/src/icalwrap/icalduration.rs index ad6646d..7ad1d13 100644 --- a/src/icalwrap/icalduration.rs +++ b/src/icalwrap/icalduration.rs @@ -1,6 +1,6 @@ use std::ops::{Deref,Add}; use std::ffi::{CStr,CString}; -use ical; +use crate::ical; use std::fmt::{Error,Display,Formatter}; use std::str::FromStr; use std::cmp::Ordering; diff --git a/src/icalwrap/icalproperty.rs b/src/icalwrap/icalproperty.rs index 85bad3d..ad903c1 100644 --- a/src/icalwrap/icalproperty.rs +++ b/src/icalwrap/icalproperty.rs @@ -3,7 +3,7 @@ use std::ffi::CStr; use std::fmt; use super::icalcomponent::IcalComponent; -use ical; +use crate::ical; pub struct IcalProperty<'a> { pub ptr: *mut ical::icalproperty, diff --git a/src/icalwrap/icaltime.rs b/src/icalwrap/icaltime.rs index cfd79ec..18a2b80 100644 --- a/src/icalwrap/icaltime.rs +++ b/src/icalwrap/icaltime.rs @@ -1,8 +1,8 @@ use std::ops::{Add,Deref}; use std::ffi::{CStr,CString}; use chrono::{Date,DateTime,TimeZone,Utc,Local}; -use ical; -use utils::dateutil; +use crate::ical; +use crate::utils::dateutil; use super::IcalTimeZone; use super::IcalDuration; use super::TZ_MUTEX; @@ -227,7 +227,7 @@ impl From<IcalTime> for DateTime<Utc> { mod tests { use super::*; - use testdata; + use crate::testdata; #[test] fn test_now() { diff --git a/src/icalwrap/icaltimezone.rs b/src/icalwrap/icaltimezone.rs index 465c2b1..90fe4cf 100644 --- a/src/icalwrap/icaltimezone.rs +++ b/src/icalwrap/icaltimezone.rs @@ -1,8 +1,8 @@ use std::ops::Deref; use std::ffi::{CString,CStr}; -use ical; +use crate::ical; -use utils::dateutil; +use crate::utils::dateutil; use super::IcalTime; pub struct IcalTimeZone { @@ -73,7 +73,7 @@ impl IcalTimeZone { mod tests { use super::*; - use testdata; + use crate::testdata; #[test] fn test_utc() { diff --git a/src/icalwrap/icalvcalendar.rs b/src/icalwrap/icalvcalendar.rs index 0dd0b49..cb9753b 100644 --- a/src/icalwrap/icalvcalendar.rs +++ b/src/icalwrap/icalvcalendar.rs @@ -6,7 +6,7 @@ use std::io; use super::IcalVEvent; use super::IcalComponent; use super::IcalTime; -use ical; +use crate::ical; pub struct IcalVCalendar { comp: Rc<IcalComponentOwner>, @@ -367,7 +367,7 @@ impl Drop for IcalComponentOwner { #[cfg(test)] mod tests { use super::*; - use testdata; + use crate::testdata; #[test] fn test_from_str_empty() { diff --git a/src/icalwrap/icalvevent.rs b/src/icalwrap/icalvevent.rs index 15bd9c0..fdaa487 100644 --- a/src/icalwrap/icalvevent.rs +++ b/src/icalwrap/icalvevent.rs @@ -5,7 +5,7 @@ use super::IcalVCalendar; use super::IcalTime; use super::IcalTimeZone; use super::IcalDuration; -use ical; +use crate::ical; pub struct IcalVEvent { ptr: *mut ical::icalcomponent, @@ -219,7 +219,7 @@ extern "C" fn recur_callback( #[cfg(test)] mod tests { use super::*; - use testdata; + use crate::testdata; use chrono::NaiveDate; #[test] |