chore: cargo fix

This commit is contained in:
hexlocation 2025-08-02 20:43:23 +02:00
parent 89df8c684b
commit 8092c07ee6
5 changed files with 16 additions and 31 deletions

View file

@ -1,22 +1,11 @@
use std::{net::IpAddr, pin::Pin, sync::Arc};
use std::{pin::Pin, sync::Arc};
use async_trait::async_trait;
use base64::{Engine, prelude::BASE64_STANDARD};
use http::request::Parts;
use http_body_util::BodyExt;
use hyper::{
Method, Request, StatusCode,
body::{self, Incoming},
service::Service,
};
use log::{debug, error, warn};
use tokio::{net::TcpStream, sync::Mutex};
use hyper::{Request, StatusCode, body::Incoming, service::Service};
use tokio::net::TcpStream;
use crate::{
config::{Client, Config},
db::{BoxyDatabase, Endpoint},
server::{GeneralResponse, TcpIntercept, custom_resp, default_response, json_to_vec},
};
use crate::server::{GeneralResponse, TcpIntercept, custom_resp, default_response};
// The routes itself
#[async_trait]
@ -47,9 +36,11 @@ pub trait Matcher: Clone + Send + Sync + 'static {
}
// Do something with TCP stream
#[allow(unused_variables)]
fn stream(&mut self, stream: &TcpStream) {}
// Body parser - made universal for api server cause lazy
#[allow(unused_variables)]
async fn body(&mut self, body: Incoming) -> Option<Result<GeneralResponse, hyper::Error>> {
None
}