Skip to content

Commit

Permalink
chore: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JyJyJcr committed Dec 26, 2024
1 parent 043c4d2 commit 1a70ea3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/http/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ pub struct NgxListIterator<'a> {
/// # Safety
///
/// The caller has provided a valid [`ngx_str_t`] which can be dereferenced validly.
pub unsafe fn list_iterator<'a>(list: &'a ngx_list_t) -> NgxListIterator<'a> {
let part: *const ngx_list_part_t = &(*list).part;
pub unsafe fn list_iterator(list: &ngx_list_t) -> NgxListIterator {
let part: *const ngx_list_part_t = &list.part;

NgxListIterator {
done: false,
Expand Down Expand Up @@ -616,7 +616,7 @@ impl<'a> PartialEq<&'a Method> for Method {
}
}

impl<'a> PartialEq<Method> for &'a Method {
impl PartialEq<Method> for &Method {
#[inline]
fn eq(&self, other: &Method) -> bool {
*self == other
Expand Down Expand Up @@ -644,7 +644,7 @@ impl<'a> PartialEq<&'a str> for Method {
}
}

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

0 comments on commit 1a70ea3

Please sign in to comment.