diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 8 | ||||
-rw-r--r-- | src/testutils.rs | 1 | ||||
-rw-r--r-- | src/time.rs | 2 | ||||
-rw-r--r-- | src/timezone.rs | 2 | ||||
-rw-r--r-- | src/utils/fileutil.rs | 2 | ||||
-rw-r--r-- | src/vcalendar.rs | 1 |
6 files changed, 3 insertions, 13 deletions
@@ -1,21 +1,19 @@ +#![warn(unused_extern_crates)] #![allow(clippy::redundant_closure)] // disable "redundant closure" lint #[cfg(test)] #[macro_use] -extern crate maplit; -#[cfg(test)] -#[macro_use] extern crate pretty_assertions; + #[cfg(test)] #[macro_use] extern crate indoc; -extern crate serde_derive; #[macro_use] extern crate log; #[macro_use] extern crate lazy_static; -extern crate ical; +use ical; // extern crate // libical does some weird, non-threadsafe things in timezone methods, notably // icaltime_convert_to_zone (which is also called in icaltime_as_timet_with_zone) diff --git a/src/testutils.rs b/src/testutils.rs index 1cc3fd4..ade3ea1 100644 --- a/src/testutils.rs +++ b/src/testutils.rs @@ -1,7 +1,6 @@ use assert_fs::fixture::{ChildPath, FixtureError}; use assert_fs::prelude::*; use assert_fs::TempDir; -use std::fs; use std::path::{Path, PathBuf}; pub fn path_to(artifact: &str) -> PathBuf { diff --git a/src/time.rs b/src/time.rs index 837fcc8..ce0b387 100644 --- a/src/time.rs +++ b/src/time.rs @@ -225,8 +225,6 @@ impl From<IcalTime> for DateTime<Utc> { mod tests { use super::*; - use crate::testdata; - #[test] fn test_now() { let now = IcalTime::utc(); diff --git a/src/timezone.rs b/src/timezone.rs index 6dc5a80..843a1ed 100644 --- a/src/timezone.rs +++ b/src/timezone.rs @@ -70,8 +70,6 @@ impl IcalTimeZone { mod tests { use super::*; - use crate::testdata; - #[test] fn test_utc() { let tz = IcalTimeZone::utc(); diff --git a/src/utils/fileutil.rs b/src/utils/fileutil.rs index 027e4c1..aac3ab6 100644 --- a/src/utils/fileutil.rs +++ b/src/utils/fileutil.rs @@ -4,8 +4,6 @@ use std::io::{BufRead, BufReader}; use std::path::{Path, PathBuf}; use std::{fs, io}; -use crate::IcalVCalendar; - pub fn file_iter(dir: &Path) -> impl Iterator<Item = PathBuf> { use walkdir::WalkDir; diff --git a/src/vcalendar.rs b/src/vcalendar.rs index 03a1ab3..09752d5 100644 --- a/src/vcalendar.rs +++ b/src/vcalendar.rs @@ -407,7 +407,6 @@ impl Drop for IcalComponentOwner { mod tests { use super::*; use crate::testdata; - use chrono::{Local, TimeZone}; #[test] fn test_from_str_empty() { |