Skip to content

Commit

Permalink
clippy for 1.80
Browse files Browse the repository at this point in the history
  • Loading branch information
kflansburg authored and GoncaloGarcia committed Jul 31, 2024
1 parent 59e551e commit 77fb90a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion worker/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ use crate::{
};

use serde::de::DeserializeOwned;
#[cfg(test)]
use std::borrow::Cow;
use url::{form_urlencoded::Parse, Url};
#[cfg(test)]
use url::form_urlencoded::Parse;
use url::Url;
use wasm_bindgen::JsCast;
use wasm_bindgen_futures::JsFuture;
use worker_sys::ext::RequestExt;
Expand Down Expand Up @@ -290,11 +293,13 @@ impl Request {
}
}

#[cfg(test)]
pub struct ParamIter<'a> {
inner: Parse<'a>,
key: &'a str,
}

#[cfg(test)]
impl<'a> Iterator for ParamIter<'a> {
type Item = Cow<'a, str>;

Expand Down

0 comments on commit 77fb90a

Please sign in to comment.