smithy-lang / smithy-rs

Code generation for the AWS SDK for Rust, as well as server and generic smithy client generation.
Apache License 2.0
491 stars 187 forks source link

Address `clippy::result_large_err` on `MissingContentTypeReason` #2470

Open hlbarber opened 1 year ago

hlbarber commented 1 year ago

The latest 1.66.1 upgrade has introduced new clippy lints. These have classed MissingContentTypeReason as too large. We should address whether we should Box this error or one of it's variants to reduce the size.

jdisanti commented 1 year ago

This is affecting the SDK too. Every SDK example had to allow the lint in order to unblock release: https://github.com/awsdocs/aws-doc-sdk-examples/pull/4523/commits/bf22a20233aa522864ad20c82f942b088d619fbf