Skip to content

Commit

Permalink
CR feedback II
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh committed Dec 1, 2022
1 parent f6bc5c2 commit 6c959cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ internal class ClientContextDecorator(ctx: CodegenContext) : ConfigCustomization
docsOrFallback(param.docs)
rust(
"""
pub fn set_${param.name}(mut self, ${param.name}: Option<#T>) -> Self {
pub fn set_${param.name}(&mut self, ${param.name}: Option<#T>) -> &mut Self {
self.${param.name} = ${param.name};
self
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ object TestWorkspace {
)
newProject.resolve("rust-toolchain.toml").writeText(
// help rust select the right version when we run cargo test
// TODO(cleanup): load this from the msrv property using a method like we do for runtime crate versions
// TODO(https://github.com/awslabs/smithy-rs/issues/2048): load this from the msrv property using a
// method as we do for runtime crate versions
"[toolchain]\nchannel = \"1.62.1\"\n",
)
// ensure there at least an empty lib.rs file to avoid broken crates
Expand Down

0 comments on commit 6c959cf

Please sign in to comment.