From 88a3f507f69a0151be8df5e00e22ae1dbff600e7 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 8 Jun 2017 22:46:27 +0200 Subject: [PATCH] =?UTF-8?q?idle,=20delay:=20Don=E2=80=99t=20import=20*=20f?= =?UTF-8?q?rom=20chrono::prelude.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/delay.rs | 5 +++-- src/idle.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/delay.rs b/src/delay.rs index 65349040..d744751d 100644 --- a/src/delay.rs +++ b/src/delay.rs @@ -7,7 +7,7 @@ use std::convert::TryFrom; use minidom::Element; -use chrono::prelude::*; +use chrono::{DateTime, FixedOffset}; use error::Error; use jid::Jid; @@ -58,8 +58,9 @@ impl Into for Delay { #[cfg(test)] mod tests { - use std::str::FromStr; use super::*; + use std::str::FromStr; + use chrono::{Datelike, Timelike}; #[test] fn test_simple() { diff --git a/src/idle.rs b/src/idle.rs index ba13bd89..82009668 100644 --- a/src/idle.rs +++ b/src/idle.rs @@ -7,7 +7,7 @@ use std::convert::TryFrom; use minidom::Element; -use chrono::prelude::*; +use chrono::{DateTime, FixedOffset}; use error::Error;