mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
fix typo and find_next
This commit is contained in:
parent
0752b8d753
commit
08624ddf36
3 changed files with 4 additions and 4 deletions
|
@ -207,7 +207,7 @@ impl ContextResolver {
|
|||
fn find_next(&self) -> Option<(&ResolveContext, &str, usize)> {
|
||||
let mut idx = 0;
|
||||
loop {
|
||||
let next = self.queue.front()?;
|
||||
let next = self.queue.get(idx)?;
|
||||
match next.resolve_uri() {
|
||||
None if idx < self.queue.len() => {
|
||||
warn!("skipped {idx} because of no valid resolve_uri: {next}");
|
||||
|
|
|
@ -63,7 +63,7 @@ fn page_url_to_uri(page_url: &str) -> String {
|
|||
let split = if let Some(rest) = page_url.strip_prefix("hm://") {
|
||||
rest.split('/')
|
||||
} else {
|
||||
warn!("page_url didn't started with hm://. got page_url: {page_url}");
|
||||
warn!("page_url didn't start with hm://. got page_url: {page_url}");
|
||||
page_url.split('/')
|
||||
};
|
||||
|
||||
|
|
|
@ -174,9 +174,9 @@ fn handle_transfer_encoding(
|
|||
) -> Result<Vec<u8>, Error> {
|
||||
let encoding = headers.get("Transfer-Encoding").map(String::as_str);
|
||||
if let Some(encoding) = encoding {
|
||||
trace!("message was send with {encoding} encoding ");
|
||||
trace!("message was sent with {encoding} encoding ");
|
||||
} else {
|
||||
trace!("message was send with no encoding ");
|
||||
trace!("message was sent with no encoding ");
|
||||
}
|
||||
|
||||
if !matches!(encoding, Some("gzip")) {
|
||||
|
|
Loading…
Reference in a new issue