Skip to content

Commit 1ae60bf

Browse files
tottotoseanmonstar
authored andcommitted
refactor(lib): remove unused lifetime parameter
1 parent 0f5e55c commit 1ae60bf

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/header/map.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,7 @@ impl<T> Default for HeaderMap<T> {
19921992
}
19931993
}
19941994

1995-
impl<'a, K, T> ops::Index<K> for HeaderMap<T>
1995+
impl<K, T> ops::Index<K> for HeaderMap<T>
19961996
where
19971997
K: AsHeaderName,
19981998
{
@@ -2461,9 +2461,9 @@ impl<'a, T> VacantEntry<'a, T> {
24612461
/// ```
24622462
pub fn insert(self, value: T) -> &'a mut T {
24632463
// Ensure that there is space in the map
2464-
let index =
2465-
self.map
2466-
.insert_phase_two(self.key, value, self.hash, self.probe, self.danger);
2464+
let index = self
2465+
.map
2466+
.insert_phase_two(self.key, value, self.hash, self.probe, self.danger);
24672467

24682468
&mut self.map.entries[index].value
24692469
}
@@ -2488,9 +2488,9 @@ impl<'a, T> VacantEntry<'a, T> {
24882488
/// ```
24892489
pub fn insert_entry(self, value: T) -> OccupiedEntry<'a, T> {
24902490
// Ensure that there is space in the map
2491-
let index =
2492-
self.map
2493-
.insert_phase_two(self.key, value, self.hash, self.probe, self.danger);
2491+
let index = self
2492+
.map
2493+
.insert_phase_two(self.key, value, self.hash, self.probe, self.danger);
24942494

24952495
OccupiedEntry {
24962496
map: self.map,

src/uri/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ impl TryFrom<String> for Uri {
741741
}
742742
}
743743

744-
impl<'a> TryFrom<Vec<u8>> for Uri {
744+
impl TryFrom<Vec<u8>> for Uri {
745745
type Error = InvalidUri;
746746

747747
#[inline]

src/uri/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ impl<'a> TryFrom<&'a str> for PathAndQuery {
294294
}
295295
}
296296

297-
impl<'a> TryFrom<Vec<u8>> for PathAndQuery {
297+
impl TryFrom<Vec<u8>> for PathAndQuery {
298298
type Error = InvalidUri;
299299
#[inline]
300300
fn try_from(vec: Vec<u8>) -> Result<Self, Self::Error> {

0 commit comments

Comments
 (0)