From e0f01933ae8d819e53bef69a7cb796d1dc221b03 Mon Sep 17 00:00:00 2001 From: mchoicpe-amazon <98426917+mchoicpe-amazon@users.noreply.github.com> Date: Tue, 25 Jan 2022 15:23:21 -0800 Subject: [PATCH] Provide SigningService creation via owned String (#1114) (#1120) --- CHANGELOG.next.toml | 6 ++++++ aws/rust-runtime/aws-types/src/lib.rs | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.next.toml b/CHANGELOG.next.toml index d3743f26ca..f044289202 100644 --- a/CHANGELOG.next.toml +++ b/CHANGELOG.next.toml @@ -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" diff --git a/aws/rust-runtime/aws-types/src/lib.rs b/aws/rust-runtime/aws-types/src/lib.rs index 3421b5f2e2..eb39142feb 100644 --- a/aws/rust-runtime/aws-types/src/lib.rs +++ b/aws/rust-runtime/aws-types/src/lib.rs @@ -42,3 +42,9 @@ impl SigningService { SigningService(Cow::Borrowed(service)) } } + +impl From for SigningService { + fn from(service: String) -> Self { + SigningService(Cow::Owned(service)) + } +}