mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 10:43:15 +00:00
fix: clippy
This commit is contained in:
@@ -13,8 +13,8 @@ const SIGN_V2_ALGORITHM: &str = "AWS";
|
|||||||
|
|
||||||
fn encode_url2path(req: &request::Builder, _virtual_host: bool) -> String {
|
fn encode_url2path(req: &request::Builder, _virtual_host: bool) -> String {
|
||||||
//path = serde_urlencoded::to_string(req.uri_ref().unwrap().path().unwrap()).unwrap();
|
//path = serde_urlencoded::to_string(req.uri_ref().unwrap().path().unwrap()).unwrap();
|
||||||
let path = req.uri_ref().unwrap().path().to_string();
|
|
||||||
path
|
req.uri_ref().unwrap().path().to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn pre_sign_v2(
|
pub fn pre_sign_v2(
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use hyper::client::conn::http2::Builder;
|
|||||||
use hyper_util::rt::TokioExecutor;
|
use hyper_util::rt::TokioExecutor;
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use std::{
|
use std::{
|
||||||
collections::{HashMap, HashSet},
|
collections::HashSet,
|
||||||
fmt::Display,
|
fmt::Display,
|
||||||
net::{IpAddr, Ipv6Addr, SocketAddr, TcpListener, ToSocketAddrs},
|
net::{IpAddr, Ipv6Addr, SocketAddr, TcpListener, ToSocketAddrs},
|
||||||
};
|
};
|
||||||
@@ -135,8 +135,6 @@ pub fn new_remotetarget_http_transport(_insecure: bool) -> Builder<TokioExecutor
|
|||||||
todo!();
|
todo!();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const ALLOWED_CUSTOM_QUERY_PREFIX: &str = "x-";
|
const ALLOWED_CUSTOM_QUERY_PREFIX: &str = "x-";
|
||||||
|
|
||||||
pub fn is_custom_query_value(qs_key: &str) -> bool {
|
pub fn is_custom_query_value(qs_key: &str) -> bool {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use std::collections::{HashMap, HashSet};
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use s3s::header::X_AMZ_STORAGE_CLASS;
|
use s3s::header::X_AMZ_STORAGE_CLASS;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user