File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
DynamoDbEncryption/runtimes/rust/src Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ macro_rules! modify_request {
23
23
( $cfg: ident, $request: ident, $self: ident, $transform: ident) => {
24
24
{
25
25
// store the original request
26
- $cfg. interceptor_state( ) . store_put( OriginalRequest ( Input :: erase( $request) ) ) ;
26
+ $cfg. interceptor_state( ) . store_put( OriginalRequest ( Input :: erase( $request. clone ( ) ) ) ) ;
27
27
28
28
// transform the request
29
29
* $request = dafny_tokio_runtime. block_on( $self. client
30
30
. $transform( )
31
- . sdk_input( $request)
32
- . send( ) ) ;
31
+ . sdk_input( $request. clone ( ) )
32
+ . send( ) ) . unwrap ( ) . transformed_input . unwrap ( ) ;
33
33
}
34
34
} ;
35
35
}
@@ -45,14 +45,14 @@ macro_rules! modify_response {
45
45
let original = original
46
46
. 0
47
47
. downcast_ref:: <$type>( )
48
- . expect( "we know this type corresponds to the output type" )
48
+ . expect( "we know this type corresponds to the output type" ) ;
49
49
50
50
// transform the response
51
51
* $response = dafny_tokio_runtime. block_on( $self. client
52
52
. $transform( )
53
- . original_input( original)
54
- . sdk_output( $response)
55
- . send( ) ) ;
53
+ . original_input( original. clone ( ) )
54
+ . sdk_output( $response. clone ( ) )
55
+ . send( ) ) . unwrap ( ) . transformed_output . unwrap ( ) ;
56
56
}
57
57
} ;
58
58
}
You can’t perform that action at this time.
0 commit comments