Skip to content

Commit 5f48deb

Browse files
committed
m
1 parent 6bd7ef5 commit 5f48deb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

DynamoDbEncryption/runtimes/rust/src/intercept.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ macro_rules! modify_request {
2323
($cfg:ident,$request:ident,$self:ident,$transform:ident) => {
2424
{
2525
// 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())));
2727

2828
// transform the request
2929
*$request = dafny_tokio_runtime.block_on($self.client
3030
.$transform()
31-
.sdk_input($request)
32-
.send());
31+
.sdk_input($request.clone())
32+
.send()).unwrap().transformed_input.unwrap();
3333
}
3434
};
3535
}
@@ -45,14 +45,14 @@ macro_rules! modify_response {
4545
let original = original
4646
.0
4747
.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");
4949

5050
// transform the response
5151
*$response = dafny_tokio_runtime.block_on($self.client
5252
.$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();
5656
}
5757
};
5858
}

0 commit comments

Comments
 (0)