diff --git a/src/jar.rs b/src/jar.rs index 29953103..e39bd58b 100644 --- a/src/jar.rs +++ b/src/jar.rs @@ -540,7 +540,7 @@ impl CookieJar { /// assert!(matches!(jar.prefixed(Secure).get("h0st"), None)); /// ``` #[inline(always)] - pub fn prefixed<'a, P: Prefix>(&'a self, prefix: P) -> PrefixedJar
{
+ pub fn prefixed {
let _ = prefix;
PrefixedJar::new(self)
}
@@ -580,7 +580,7 @@ impl CookieJar {
/// jar.prefixed_mut(Host).remove("one");
/// assert!(jar.prefixed(Host).get("one").is_none());
/// ```
- pub fn prefixed_mut<'a, P: Prefix>(&'a mut self, prefix: P) -> PrefixedJar {
+ pub fn prefixed_mut {
let _ = prefix;
PrefixedJar::new(self)
}
@@ -616,7 +616,7 @@ impl<'a> Iterator for Iter<'a> {
fn next(&mut self) -> Option<&'a Cookie<'static>> {
for cookie in self.delta_cookies.by_ref() {
if !cookie.removed {
- return Some(&*cookie);
+ return Some(&**cookie);
}
}
diff --git a/src/lib.rs b/src/lib.rs
index f666d2c3..07147e95 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -778,7 +778,7 @@ impl<'c> Cookie<'c> {
match self.domain {
Some(ref c) => {
let domain = c.to_str(self.cookie_string.as_ref());
- domain.strip_prefix(".").or(Some(domain))
+ domain.strip_prefix('.').or(Some(domain))
},
None => None,
}
@@ -1362,7 +1362,7 @@ impl<'c> Cookie<'c> {
pub fn domain_raw(&self) -> Option<&'c str> {
match (self.domain.as_ref(), self.cookie_string.as_ref()) {
(Some(domain), Some(string)) => match domain.to_raw_str(string) {
- Some(s) => s.strip_prefix(".").or(Some(s)),
+ Some(s) => s.strip_prefix('.').or(Some(s)),
None => None,
}
_ => None,
diff --git a/src/parse.rs b/src/parse.rs
index b263d915..4a1913a0 100644
--- a/src/parse.rs
+++ b/src/parse.rs
@@ -153,7 +153,7 @@ fn parse_inner<'c>(s: &str, decode: bool) -> Result