Skip to content

Commit

Permalink
Provide SigningService creation via owned String (#1114) (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchoicpe-amazon authored Jan 25, 2022
1 parent 39e3316 commit e0f0193
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.next.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ message = "SDK examples now come from [`awsdocs/aws-doc-sdk-examples`](https://g
references = ["smithy-rs#1118"]
meta = { "breaking" = false, "tada" = false, "bug" = false }
author = "jdisanti"

[[smithy-rs]]
message = "Provide SigningService creation via owned String"
references = ["smithy-rs#1114"]
meta = { "breaking" = false, "tada" = false, "bug" = false }
author = "mchoicpe-amazon"
6 changes: 6 additions & 0 deletions aws/rust-runtime/aws-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ impl SigningService {
SigningService(Cow::Borrowed(service))
}
}

impl From<String> for SigningService {
fn from(service: String) -> Self {
SigningService(Cow::Owned(service))
}
}

0 comments on commit e0f0193

Please sign in to comment.