Client Test

Client Test

rev. e59472c54390b5dd524eb337f42061c3f4861f6e

Files changed:

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

@@ -840,840 +900,900 @@
  860    860   
 "bytes",
  861    861   
 "http 0.2.12",
  862    862   
 "http 1.4.0",
  863    863   
 "pin-project-lite",
  864    864   
 "tokio",
  865    865   
 "tracing",
  866    866   
]
  867    867   
  868    868   
[[package]]
  869    869   
name = "aws-smithy-types"
  870         -
version = "1.4.5"
         870  +
version = "1.4.6"
  871    871   
dependencies = [
  872    872   
 "base64 0.13.1",
  873    873   
 "base64-simd",
  874    874   
 "bytes",
  875    875   
 "bytes-utils",
  876    876   
 "ciborium",
  877    877   
 "criterion",
  878    878   
 "futures-core",
  879    879   
 "http 0.2.12",
  880    880   
 "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   
}