Skip to content

Commit a3c8438

Browse files
committed
Lint fixes
1 parent e5669d9 commit a3c8438

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn cstr_ptr(s: *const u8) -> *const c_char {
3434
#[cfg(not(target_os = "macos"))]
3535
#[inline]
3636
fn cstr_ptr(s: *const u8) -> *const c_char {
37-
s as *const u8 as *const c_char
37+
s as *const c_char
3838
}
3939

4040
// NGINX module for Gateway API inference extensions.

src/modules/bbr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn cstr_ptr(s: *const u8) -> *const c_char {
1616
#[cfg(not(target_os = "macos"))]
1717
#[inline]
1818
fn cstr_ptr(s: *const u8) -> *const c_char {
19-
s as *const u8 as *const c_char
19+
s as *const c_char
2020
}
2121

2222
/// Get an incoming request header value by name (case-insensitive).

0 commit comments

Comments
 (0)