-
- Downloads
Allow injecting methods with generic type parameters in the config object (#3274)
This is a follow-up to #3111. Currently, the injected methods are limited to taking in concrete types. This PR allows for these methods to take in generic type parameters as well. ```rust impl<L, H, M> SimpleServiceConfigBuilder<L, H, M> { pub fn aws_auth<C>(config: C) { ... } } ``` ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Showing
- codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServiceConfigGenerator.kt 91 additions, 46 deletions...odegen/server/smithy/generators/ServiceConfigGenerator.kt
- codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServiceConfigGeneratorTest.kt 75 additions, 25 deletions...en/server/smithy/generators/ServiceConfigGeneratorTest.kt
Loading
Please register or sign in to comment