Client Test

Client Test

rev. 266592d199234bd4382860085665e51aa7f398d4 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/config/auth.rs

@@ -28,28 +90,88 @@
   48     48   
}
   49     49   
   50     50   
// TODO(https://github.com/smithy-lang/smithy-rs/issues/4177): Remove `allow(...)` once the issue is addressed.
   51     51   
// When generating code for tests (e.g., `codegen-client-test`), this manual implementation
   52     52   
// of the `Default` trait may appear as if it could be derived automatically.
   53     53   
// However, that is not the case in production.
   54     54   
#[allow(clippy::derivable_impls)]
   55     55   
impl Default for DefaultAuthSchemeResolver {
   56     56   
    fn default() -> Self {
   57     57   
        Self {
   58         -
            service_defaults: vec![::aws_smithy_runtime_api::client::auth::AuthSchemeOption::from(
   59         -
                ::aws_smithy_runtime::client::auth::no_auth::NO_AUTH_SCHEME_ID,
   60         -
            )],
          58  +
            service_defaults: vec![],
   61     59   
            operation_overrides: ::std::collections::HashMap::new(),
   62     60   
        }
   63     61   
    }
   64     62   
}
   65     63   
   66     64   
impl crate::config::auth::ResolveAuthScheme for DefaultAuthSchemeResolver {
   67     65   
    fn resolve_auth_scheme<'a>(
   68     66   
        &'a self,
   69     67   
        params: &'a crate::config::auth::Params,
   70     68   
        _cfg: &'a ::aws_smithy_types::config_bag::ConfigBag,