Closed PawelLawrynowicz closed 2 years ago
In the "Usage" part of the README file:
assert!(req.parse(buf)?.is_partial());
throws an error:
cannot use the ? operator in a function that returns ()
The correct usage is as in the documentation:
req.parse(buf).unwrap().is_partial()
Your test func should return httparse::Result<()> to use ? for early return.
httparse::Result<()>
?
In the "Usage" part of the README file:
throws an error:
The correct usage is as in the documentation: