diff --git a/reqwest-retry/tests/all/helpers/simple_server.rs b/reqwest-retry/tests/all/helpers/simple_server.rs index 205aaff..da6d249 100644 --- a/reqwest-retry/tests/all/helpers/simple_server.rs +++ b/reqwest-retry/tests/all/helpers/simple_server.rs @@ -126,7 +126,7 @@ impl SimpleServer { /// Parses the request line and checks that it contains the method, uri and http_version parts. /// It does not check if the content of the checked parts is correct. It just checks the format (it contains enough parts) of the request. - fn parse_request_line(request: &str) -> Result> { + fn parse_request_line(request: &str) -> Result, Box> { let mut parts = request.split_whitespace(); let method = parts.next().ok_or("Method not specified")?;