Skip to content

Commit

Permalink
Provide SigningService creation via owned String (smithy-lang#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchoicpe-amazon committed Jan 25, 2022
1 parent eb0581a commit 5ffda0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 22 deletions.
25 changes: 3 additions & 22 deletions CHANGELOG.next.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
# Example changelog entries
# [[aws-sdk-rust]]
# message = "Fix typos in module documentation for generated crates"
# references = ["smithy-rs#920"]
# meta = { "breaking" = false, "tada" = false, "bug" = false }
# author = "rcoh"
#
# [[smithy-rs]]
# message = "Fix typos in module documentation for generated crates"
# references = ["smithy-rs#920"]
# meta = { "breaking" = false, "tada" = false, "bug" = false }
# author = "rcoh"

[[aws-sdk-rust]]
message = "Convert several `info` spans to `debug` in aws-config"
references = ["smithy-rs#1087"]
meta = { "breaking" = false, "tada" = false, "bug" = false }
author = "rcoh"

[[smithy-rs]]
message = "Improve docs on `Endpoint::{mutable, immutable}`"
references = ["smithy-rs#1087"]
message = "Provide SigningService creation via owned String"
references = ["smithy-rs#1114"]
meta = { "breaking" = false, "tada" = false, "bug" = false }
author = "rcoh"
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 5ffda0b

Please sign in to comment.