Update based on lints
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Signed-off-by: Jacob Kiers <code@kiers.eu>
This commit is contained in:
Jacob Kiers 2025-01-09 20:38:05 +01:00
parent 8fe1f7f57b
commit 2c6ad1d7b8
4 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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};

View File

@ -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 {

View File

@ -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...");