Skip to content

Commit

Permalink
Remove unnecessary guards
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-crypto authored and djc committed Aug 3, 2022
1 parent 616275b commit be6d6a6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/resolver/src/hosts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
use std::collections::HashMap;
use std::io;
use std::path::Path;
#[cfg(any(unix, windows))]
use std::str::FromStr;
use std::sync::Arc;

use proto::op::Query;
use proto::rr::{Name, RecordType};
#[cfg(any(unix, windows))]
use proto::rr::{RData, Record};
use tracing::warn;

Expand Down Expand Up @@ -99,7 +97,6 @@ impl Hosts {
}

/// parse configuration from `src`
#[cfg(any(unix, windows))]
pub fn read_hosts_conf(mut self, src: impl io::Read) -> io::Result<Self> {
use std::io::{BufRead, BufReader};

Expand Down

0 comments on commit be6d6a6

Please sign in to comment.