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:
John DiSanti 2023-06-14 18:08:25 -07:00 committed by GitHub
parent a694dd9dcd
commit 3f6f49943d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 7 deletions

View File

@ -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,