mirror of
https://github.com/DNSCrypt/encrypted-dns-server.git
synced 2024-06-03 18:26:05 +02:00
Remove unused things
This commit is contained in:
parent
97de11bb71
commit
77a5878a52
|
@ -2,12 +2,10 @@ use crate::crypto::*;
|
|||
use crate::globals::*;
|
||||
|
||||
use byteorder::{BigEndian, ByteOrder};
|
||||
use coarsetime::{Clock, Duration};
|
||||
use parking_lot::RwLock;
|
||||
use coarsetime::Clock;
|
||||
use std::mem;
|
||||
use std::slice;
|
||||
use std::sync::Arc;
|
||||
use std::time::SystemTime;
|
||||
|
||||
pub const DNSCRYPT_CERTS_TTL: u32 = 86400;
|
||||
pub const DNSCRYPT_CERTS_RENEWAL: u32 = 28800;
|
||||
|
|
12
src/main.rs
12
src/main.rs
|
@ -1,7 +1,7 @@
|
|||
#![allow(clippy::assertions_on_constants)]
|
||||
#![allow(unused_imports)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(dead_code)]
|
||||
//#![allow(clippy::assertions_on_constants)]
|
||||
//#![allow(unused_imports)]
|
||||
//#![allow(unused_variables)]
|
||||
//#![allow(dead_code)]
|
||||
|
||||
#[global_allocator]
|
||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||
|
@ -50,12 +50,10 @@ use std::convert::TryFrom;
|
|||
use std::fs::{File, OpenOptions};
|
||||
use std::io::prelude::*;
|
||||
use std::mem;
|
||||
use std::net::{IpAddr, SocketAddr};
|
||||
use std::path::PathBuf;
|
||||
use std::net::SocketAddr;
|
||||
use std::sync::atomic::{AtomicU32, Ordering};
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
||||
use tokio::net::{TcpListener, TcpStream, UdpSocket};
|
||||
use tokio::prelude::*;
|
||||
use tokio::runtime::Runtime;
|
||||
|
|
Loading…
Reference in New Issue