Skip to content

Commit 87dd6b4

Browse files
clippy for 1.80 (#607)
Co-authored-by: Kevin Flansburg <[email protected]>
1 parent 59e551e commit 87dd6b4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

worker/src/request.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ use crate::{
55
};
66

77
use serde::de::DeserializeOwned;
8+
#[cfg(test)]
89
use std::borrow::Cow;
9-
use url::{form_urlencoded::Parse, Url};
10+
#[cfg(test)]
11+
use url::form_urlencoded::Parse;
12+
use url::Url;
1013
use wasm_bindgen::JsCast;
1114
use wasm_bindgen_futures::JsFuture;
1215
use worker_sys::ext::RequestExt;
@@ -290,11 +293,13 @@ impl Request {
290293
}
291294
}
292295

296+
#[cfg(test)]
293297
pub struct ParamIter<'a> {
294298
inner: Parse<'a>,
295299
key: &'a str,
296300
}
297301

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

0 commit comments

Comments
 (0)