We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
for_host
1 parent acd1b05 commit 221be11Copy full SHA for 221be11
src/retry.rs
@@ -73,9 +73,9 @@ pub(crate) struct Policy {
73
/// [`Builder::scoped()`].
74
pub fn for_host<S>(host: S) -> Builder
75
where
76
- S: PartialEq<str> + Send + Sync + 'static,
+ S: for<'a> PartialEq<&'a str> + Send + Sync + 'static,
77
{
78
- scoped(move |req| &host == req.uri().host().unwrap_or(""))
+ scoped(move |req| host == req.uri().host().unwrap_or(""))
79
}
80
81
/// Create a retry policy that will never retry any request.
0 commit comments