1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-05 19:42:03 +02:00

Merge branch 'dev' into new-api and update crates

This commit is contained in:
Roderick van Domburg 2022-07-27 23:31:11 +02:00
commit 05b9b13cf8
No known key found for this signature in database
GPG key ID: 87F5FDE8A56219F4
41 changed files with 975 additions and 804 deletions

View file

@ -1,5 +1,6 @@
use std::{
convert::TryInto,
fmt::Write,
time::{Duration, Instant},
};
@ -273,7 +274,7 @@ impl SpClient {
Some(_) => "&",
None => "?",
};
url.push_str(&format!("{}product=0", separator));
let _ = write!(url, "{}product=0", separator);
let mut request = Request::builder()
.method(method)
@ -464,7 +465,7 @@ impl SpClient {
Some(_) => "&",
None => "?",
};
url.push_str(&format!("{}cid={}", separator, self.session().client_id()));
let _ = write!(url, "{}cid={}", separator, self.session().client_id());
self.request_url(url).await
}