Client Test

Client Test

rev. 8cf043b2869c0ba885f80c306af9da3854f52bb7

Files changed:

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

@@ -739,739 +799,799 @@
  759    759   
 "http 1.4.0",
  760    760   
 "pin-project-lite",
  761    761   
 "proptest",
  762    762   
 "tokio",
  763    763   
 "tracing",
  764    764   
 "zeroize",
  765    765   
]
  766    766   
  767    767   
[[package]]
  768    768   
name = "aws-smithy-types"
  769         -
version = "1.4.5"
         769  +
version = "1.4.6"
  770    770   
dependencies = [
  771    771   
 "base64 0.13.1",
  772    772   
 "base64-simd",
  773    773   
 "bytes",
  774    774   
 "bytes-utils",
  775    775   
 "ciborium",
  776    776   
 "criterion",
  777    777   
 "futures-core",
  778    778   
 "http 0.2.12",
  779    779   
 "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   
}