From 839f4f0462d536898eb6ad326e43dcbb8921e25c Mon Sep 17 00:00:00 2001 From: Claas Date: Sun, 29 Sep 2024 23:00:58 +0200 Subject: [PATCH] Clean up --- core/src/lib.rs | 2 +- pumpe/src/main.rs | 24 +++++------------------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/core/src/lib.rs b/core/src/lib.rs index f969bd8..864b509 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -8,7 +8,7 @@ use openmls_basic_credential::SignatureKeyPair; use openmls_rust_crypto::OpenMlsRustCrypto; use openmls_traits::types::Ciphersuite; use serde::{Deserialize, Serialize}; -use tls_codec::{Deserialize as _, Serialize as _}; +use tls_codec::Serialize as _; use wasm_bindgen::prelude::*; pub(crate) const CIPHERSUITE: Ciphersuite = diff --git a/pumpe/src/main.rs b/pumpe/src/main.rs index 753bdc8..37a16e0 100644 --- a/pumpe/src/main.rs +++ b/pumpe/src/main.rs @@ -1,30 +1,16 @@ -use std::{ - collections::{HashSet, VecDeque}, - env, - fmt::format, - fs, - path::{Path, PathBuf}, - rc::Rc, - sync::Arc, -}; +use std::{collections::VecDeque, fs, path::Path, rc::Rc}; use axum::{ - body::{Body, Bytes}, - extract::{self, path, State}, - http::{self, header, request}, - response::IntoResponse, - routing::get, + body::Body, + http::{self, header}, Router, }; use camino::Utf8PathBuf; use clap::{error::ErrorKind, CommandFactory, Parser}; use http_body_util::BodyExt; use thiserror::Error; -use tower::{ServiceBuilder, ServiceExt}; -use tower_http::{ - compression::{Compression, CompressionLayer}, - services::ServeDir, -}; +use tower::ServiceExt; +use tower_http::{compression::CompressionLayer, services::ServeDir}; #[derive(Parser, Debug)] #[command()] -- 2.51.2