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
For struct getters that return &Option<String> throughout the codebase, replace them with Option<&str>.
There are structs in the AWS SDK crates that return &Option<string> but this is due to the smithy-rs code generator mechanically determining the return type as &Option<T> given a struct field of type T. If we can afford to handwrite the Rust code, we should prefer more idiomatic Option<&str>.
The text was updated successfully, but these errors were encountered:
For struct getters that return
&Option<String>
throughout the codebase, replace them withOption<&str>
.There are structs in the AWS SDK crates that return
&Option<string>
but this is due to thesmithy-rs
code generator mechanically determining the return type as&Option<T>
given a struct field of typeT
. If we can afford to handwrite the Rust code, we should prefer more idiomaticOption<&str>
.The text was updated successfully, but these errors were encountered: