Closed juchiast closed 3 years ago
Currently custom error is formatted with "{:?}", which is rust-specific formatting and I don't think it makes sense to return this other applications.
https://github.com/lamedh-dev/aws-lambda-rust-runtime/blob/9c6593e8c0857f31ea9747594960954f1820addf/lambda/src/lib.rs#L233
Suggestion: use Display to format e, people who want to use Debug can still do format!("{:?}", e) manually.
Display
e
Debug
format!("{:?}", e)
Currently custom error is formatted with "{:?}", which is rust-specific formatting and I don't think it makes sense to return this other applications.
https://github.com/lamedh-dev/aws-lambda-rust-runtime/blob/9c6593e8c0857f31ea9747594960954f1820addf/lambda/src/lib.rs#L233
Suggestion: use
Display
to formate
, people who want to useDebug
can still doformat!("{:?}", e)
manually.