fix typo and find_next

This commit is contained in:
Felix Prillwitz 2024-12-16 00:19:21 +01:00
parent 0752b8d753
commit 08624ddf36
No known key found for this signature in database
GPG key ID: DE334B43606D1455
3 changed files with 4 additions and 4 deletions

View file

@ -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}");

View file

@ -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('/')
};

View file

@ -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")) {