mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
style: format with style edition 2024
This commit is contained in:
parent
056d125cb2
commit
218eced556
62 changed files with 196 additions and 139 deletions
|
@ -5,17 +5,17 @@ use std::{
|
|||
};
|
||||
|
||||
use bytes::Bytes;
|
||||
use futures_util::{future::IntoStream, FutureExt};
|
||||
use futures_util::{FutureExt, future::IntoStream};
|
||||
use governor::{
|
||||
clock::MonotonicClock, middleware::NoOpMiddleware, state::InMemoryState, Quota, RateLimiter,
|
||||
Quota, RateLimiter, clock::MonotonicClock, middleware::NoOpMiddleware, state::InMemoryState,
|
||||
};
|
||||
use http::{header::HeaderValue, Uri};
|
||||
use http::{Uri, header::HeaderValue};
|
||||
use http_body_util::{BodyExt, Full};
|
||||
use hyper::{body::Incoming, header::USER_AGENT, HeaderMap, Request, Response, StatusCode};
|
||||
use hyper::{HeaderMap, Request, Response, StatusCode, body::Incoming, header::USER_AGENT};
|
||||
use hyper_proxy2::{Intercept, Proxy, ProxyConnector};
|
||||
use hyper_rustls::{HttpsConnector, HttpsConnectorBuilder};
|
||||
use hyper_util::{
|
||||
client::legacy::{connect::HttpConnector, Client, ResponseFuture},
|
||||
client::legacy::{Client, ResponseFuture, connect::HttpConnector},
|
||||
rt::TokioExecutor,
|
||||
};
|
||||
use nonzero_ext::nonzero;
|
||||
|
@ -24,10 +24,10 @@ use thiserror::Error;
|
|||
use url::Url;
|
||||
|
||||
use crate::{
|
||||
config::{os_version, OS},
|
||||
date::Date,
|
||||
version::{spotify_version, FALLBACK_USER_AGENT, VERSION_STRING},
|
||||
Error,
|
||||
config::{OS, os_version},
|
||||
date::Date,
|
||||
version::{FALLBACK_USER_AGENT, VERSION_STRING, spotify_version},
|
||||
};
|
||||
|
||||
// The 30 seconds interval is documented by Spotify, but the calls per interval
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue