You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you depend on lambda_http 0.8.1 with default features set to false, then the following compile errors occur:
Checking lambda_http v0.8.1
error[E0004]: non-exhaustive patterns: type `&LambdaRequest` is non-empty
--> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lambda_http-0.8.1/src/request.rs:54:15
|
54 | match self {
| ^^^^
|
note: `LambdaRequest` defined here
--> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lambda_http-0.8.1/src/request.rs:38:10
|
38 | pub enum LambdaRequest {
| ^^^^^^^^^^^^^
= note: the matched value is of type `&LambdaRequest`
= note: references are always considered inhabited
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
|
54 ~ match self {
55 + _ => todo!(),
56 + }
|
error[E0004]: non-exhaustive patterns: type `&RequestOrigin` is non-empty
--> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lambda_http-0.8.1/src/response.rs:64:15
|
64 | match request_origin {
| ^^^^^^^^^^^^^^
|
note: `RequestOrigin` defined here
--> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lambda_http-0.8.1/src/request.rs:73:10
|
73 | pub enum RequestOrigin {
| ^^^^^^^^^^^^^
= note: the matched value is of type `&RequestOrigin`
= note: references are always considered inhabited
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
|
64 ~ match request_origin {
65 + _ => todo!(),
66 + }
|
For more information about this error, try `rustc --explain E0004`.
The text was updated successfully, but these errors were encountered:
This kinda makes sense. You need at least 1 of the features enabled for the crate to work. Feel free to open a PR if you have suggestions on how to fix that.
Comments on closed issues are hard for the maintainers of this repository to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
If you depend on
lambda_http
0.8.1 with default features set to false, then the following compile errors occur:The text was updated successfully, but these errors were encountered: