Skip to content

Commit 1a70ea3

Browse files
committed
chore: fix clippy warning
1 parent 043c4d2 commit 1a70ea3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/http/request.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ pub struct NgxListIterator<'a> {
443443
/// # Safety
444444
///
445445
/// The caller has provided a valid [`ngx_str_t`] which can be dereferenced validly.
446-
pub unsafe fn list_iterator<'a>(list: &'a ngx_list_t) -> NgxListIterator<'a> {
447-
let part: *const ngx_list_part_t = &(*list).part;
446+
pub unsafe fn list_iterator(list: &ngx_list_t) -> NgxListIterator {
447+
let part: *const ngx_list_part_t = &list.part;
448448

449449
NgxListIterator {
450450
done: false,
@@ -616,7 +616,7 @@ impl<'a> PartialEq<&'a Method> for Method {
616616
}
617617
}
618618

619-
impl<'a> PartialEq<Method> for &'a Method {
619+
impl PartialEq<Method> for &Method {
620620
#[inline]
621621
fn eq(&self, other: &Method) -> bool {
622622
*self == other
@@ -644,7 +644,7 @@ impl<'a> PartialEq<&'a str> for Method {
644644
}
645645
}
646646

647-
impl<'a> PartialEq<Method> for &'a str {
647+
impl PartialEq<Method> for &str {
648648
#[inline]
649649
fn eq(&self, other: &Method) -> bool {
650650
*self == other.as_ref()

0 commit comments

Comments
 (0)