From 3620cdaa41afc38e8070defeffec79b30d53b07d Mon Sep 17 00:00:00 2001 From: FranciscaOrtegaG Date: Tue, 24 Oct 2023 09:47:43 -0300 Subject: [PATCH] deleted warbings in cache_data.rs --- src/dns_cache/cache_data.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/dns_cache/cache_data.rs b/src/dns_cache/cache_data.rs index 1df54cf0..e353b0f7 100644 --- a/src/dns_cache/cache_data.rs +++ b/src/dns_cache/cache_data.rs @@ -1,14 +1,13 @@ pub mod host_data; use chrono::Utc; - -use crate::message::rdata::Rdata; -use crate::message::type_rtype::{Rtype, self}; +//use crate::message::rdata::Rdata; +use crate::message::type_rtype::Rtype; use crate::rr_cache::RRCache; use std::net::IpAddr; use crate::dns_cache::cache_data::host_data::HostData; use std::collections::HashMap; -use crate::domain_name::{DomainName, self}; +use crate::domain_name::DomainName; ///struct to define the cache data @@ -201,10 +200,10 @@ impl CacheData{ #[cfg(test)] mod cache_data_test{ use chrono::{Utc, Duration}; - use std::thread::sleep; - use std::time::Duration as StdDuration; + //use std::thread::sleep; + //use std::time::Duration as StdDuration; - use crate::{message::rdata::txt_rdata::TxtRdata, rr_cache}; + use crate::message::rdata::txt_rdata::TxtRdata; use crate::message::type_rtype::Rtype; use crate::rr_cache::RRCache; use crate::domain_name::DomainName; @@ -216,7 +215,7 @@ mod cache_data_test{ - use super::{CacheData, host_data}; + use super::CacheData; //Constructor test #[test]