Skip to content

Commit eb1c3b4

Browse files
committed
chore: fix lifetime related warning
Specify a hidden lifetime to remove a warning message. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent a7fa382 commit eb1c3b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub struct RequestLine {
9595
impl RequestLine {
9696
fn parse_request_line(
9797
request_line: &[u8],
98-
) -> std::result::Result<RequestLineParts, RequestError> {
98+
) -> std::result::Result<RequestLineParts<'_>, RequestError> {
9999
if let Some(method_end) = find(request_line, &[SP]) {
100100
// The slice access is safe because `find` validates that `method_end` < `request_line` size.
101101
let method = &request_line[..method_end];

0 commit comments

Comments
 (0)