mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
cargo fmt
This commit is contained in:
parent
da0deb1de6
commit
e1113dd5e2
3 changed files with 9 additions and 12 deletions
|
@ -7,10 +7,10 @@ use std::{
|
|||
|
||||
use bytes::Bytes;
|
||||
use futures_util::StreamExt;
|
||||
use http_body_util::BodyExt;
|
||||
use hyper::StatusCode;
|
||||
use tempfile::NamedTempFile;
|
||||
use tokio::sync::{mpsc, oneshot};
|
||||
use http_body_util::BodyExt;
|
||||
|
||||
use librespot_core::{http_client::HttpClient, session::Session, Error};
|
||||
|
||||
|
|
|
@ -11,12 +11,13 @@ use governor::{
|
|||
};
|
||||
use http::{header::HeaderValue, Uri};
|
||||
use http_body_util::{BodyExt, Full};
|
||||
use hyper::{
|
||||
body::Incoming, header::USER_AGENT, HeaderMap, Request, Response, StatusCode
|
||||
};
|
||||
use hyper::{body::Incoming, header::USER_AGENT, HeaderMap, Request, Response, StatusCode};
|
||||
use hyper_proxy2::{Intercept, Proxy, ProxyConnector};
|
||||
use hyper_rustls::{HttpsConnector, HttpsConnectorBuilder};
|
||||
use hyper_util::{client::legacy::{connect::HttpConnector, Client, ResponseFuture}, rt::TokioExecutor};
|
||||
use hyper_util::{
|
||||
client::legacy::{connect::HttpConnector, Client, ResponseFuture},
|
||||
rt::TokioExecutor,
|
||||
};
|
||||
use nonzero_ext::nonzero;
|
||||
use once_cell::sync::OnceCell;
|
||||
use parking_lot::Mutex;
|
||||
|
@ -249,7 +250,6 @@ impl HttpClient {
|
|||
))
|
||||
})?;
|
||||
|
||||
|
||||
Ok(self.hyper_client()?.request(req.map(Full::new)))
|
||||
}
|
||||
|
||||
|
|
|
@ -16,9 +16,7 @@ use futures_core::Stream;
|
|||
use futures_util::{FutureExt, TryFutureExt};
|
||||
use hmac::{Hmac, Mac};
|
||||
use http_body_util::{BodyExt, Full};
|
||||
use hyper::{
|
||||
body::Incoming, Method, Request, Response, StatusCode
|
||||
};
|
||||
use hyper::{body::Incoming, Method, Request, Response, StatusCode};
|
||||
|
||||
use hyper_util::{rt::TokioIo, server::graceful::GracefulShutdown};
|
||||
use log::{debug, error, warn};
|
||||
|
@ -271,7 +269,6 @@ impl DiscoveryServer {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
tokio::spawn(async move {
|
||||
let discovery = Arc::new(discovery);
|
||||
|
||||
|
|
Loading…
Reference in a new issue