Client Test

Client Test

rev. 70cd16feb2a80dd4eea28441a663e2af6c7561c0

Files changed:

tmp-codegen-diff/codegen-client-test/Cargo.lock

@@ -670,670 +730,730 @@
  690    690   
 "http 1.4.0",
  691    691   
 "pin-project-lite",
  692    692   
 "proptest",
  693    693   
 "tokio",
  694    694   
 "tracing",
  695    695   
 "zeroize",
  696    696   
]
  697    697   
  698    698   
[[package]]
  699    699   
name = "aws-smithy-types"
  700         -
version = "1.3.5"
         700  +
version = "1.3.6"
  701    701   
dependencies = [
  702    702   
 "base64 0.13.1",
  703    703   
 "base64-simd",
  704    704   
 "bytes",
  705    705   
 "bytes-utils",
  706    706   
 "ciborium",
  707    707   
 "criterion",
  708    708   
 "futures-core",
  709    709   
 "http 0.2.12",
  710    710   
 "http 1.4.0",

tmp-codegen-diff/codegen-client-test/endpoint-rules/rust-client-codegen/src/endpoint_lib/diagnostic.rs

@@ -7,7 +45,46 @@
   27     27   
    pub(crate) fn capture<T, E: Into<Box<dyn Error + Send + Sync>>>(&mut self, err: Result<T, E>) -> Option<T> {
   28     28   
        match err {
   29     29   
            Ok(res) => Some(res),
   30     30   
            Err(e) => {
   31     31   
                self.report_error(e);
   32     32   
                None
   33     33   
            }
   34     34   
        }
   35     35   
    }
   36     36   
          37  +
    #[allow(dead_code)]
   37     38   
    pub(crate) fn take_last_error(&mut self) -> Option<Box<dyn Error + Send + Sync>> {
   38     39   
        self.last_error.take()
   39     40   
    }
   40     41   
   41     42   
    /// Create a new diagnostic collector
   42     43   
    pub(crate) fn new() -> Self {
   43     44   
        Self { last_error: None }
   44     45   
    }
   45     46   
}