mirror of https://github.com/smithy-lang/smithy-rs
Fix rustfmt on generated SDK code (#2778)
_By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
This commit is contained in:
parent
a694dd9dcd
commit
3f6f49943d
|
@ -329,13 +329,19 @@ class FluentClientGenerator(
|
|||
rustTemplate(
|
||||
"""
|
||||
/// Sends a request with this input using the given client.
|
||||
pub async fn send_with${generics.inst}(self, client: &crate::Client${generics.inst}) -> #{Result}<#{OperationOutput}, #{SdkError}<#{OperationError}, #{RawResponseType}>>
|
||||
#{send_bounds:W}
|
||||
#{boundsWithoutWhereClause:W}
|
||||
{
|
||||
let mut fluent_builder = client.$fnName();
|
||||
fluent_builder.inner = self;
|
||||
fluent_builder.send().await
|
||||
pub async fn send_with${generics.inst}(
|
||||
self,
|
||||
client: &crate::Client${generics.inst}
|
||||
) -> #{Result}<
|
||||
#{OperationOutput},
|
||||
#{SdkError}<
|
||||
#{OperationError},
|
||||
#{RawResponseType}
|
||||
>
|
||||
> #{send_bounds:W} #{boundsWithoutWhereClause:W} {
|
||||
let mut fluent_builder = client.$fnName();
|
||||
fluent_builder.inner = self;
|
||||
fluent_builder.send().await
|
||||
}
|
||||
""",
|
||||
*preludeScope,
|
||||
|
|
Loading…
Reference in New Issue