Update based on lints
Signed-off-by: Jacob Kiers <code@kiers.eu>
This commit is contained in:
parent
8fe1f7f57b
commit
2c6ad1d7b8
@ -7,7 +7,7 @@ use crate::config::ConfigV1;
|
|||||||
use crate::servers::Server;
|
use crate::servers::Server;
|
||||||
use std::io::{stderr, stdout, Write};
|
use std::io::{stderr, stdout, Write};
|
||||||
|
|
||||||
use log::{debug, error, info};
|
use log::{debug, error};
|
||||||
use pico_args::Arguments;
|
use pico_args::Arguments;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use crate::servers::protocol::tls::determine_upstream_name;
|
use crate::servers::protocol::tls::determine_upstream_name;
|
||||||
use crate::servers::Proxy;
|
use crate::servers::Proxy;
|
||||||
use log::{debug, error, info, trace, warn};
|
use log::{debug, error, info, warn};
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use tokio::net::{TcpListener, TcpStream};
|
use tokio::net::{TcpListener, TcpStream};
|
||||||
|
@ -4,7 +4,8 @@ use std::io::Result;
|
|||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::sync::RwLock;
|
use std::sync::RwLock;
|
||||||
use time::{Duration, Instant, OffsetDateTime};
|
use std::time::Instant;
|
||||||
|
use time::{Duration, OffsetDateTime};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, Default)]
|
||||||
pub(crate) struct UpstreamAddress {
|
pub(crate) struct UpstreamAddress {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use self_update::{cargo_crate_version, version};
|
use self_update::cargo_crate_version;
|
||||||
|
|
||||||
pub(crate) fn update() {
|
pub(crate) fn update() {
|
||||||
println!("Updating to the latest version...");
|
println!("Updating to the latest version...");
|
||||||
|
Loading…
Reference in New Issue
Block a user