1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 18:29:45 +02:00

Fix clippy warnings

This commit is contained in:
johannesd3 2021-03-31 20:05:32 +02:00
parent f5274f5ada
commit 7c3d89112d
11 changed files with 49 additions and 47 deletions

View file

@ -11,7 +11,7 @@ use super::AP_FALLBACK;
const APRESOLVE_ENDPOINT: &str = "http://apresolve.spotify.com:80";
#[derive(Clone, Debug, Deserialize)]
struct APResolveData {
struct ApResolveData {
ap_list: Vec<String>,
}
@ -41,7 +41,7 @@ async fn try_apresolve(
};
let body = hyper::body::to_bytes(response.into_body()).await?;
let data: APResolveData = serde_json::from_slice(body.as_ref())?;
let data: ApResolveData = serde_json::from_slice(body.as_ref())?;
let ap = if ap_port.is_some() || proxy.is_some() {
data.ap_list.into_iter().find_map(|ap| {