Skip to content

Commit 5eb6954

Browse files
committed
remove double-serialization
1 parent 9528a7b commit 5eb6954

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lambda/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,7 @@ where
233233
};
234234

235235
let req = match f.await {
236-
Ok(res) => EventCompletionRequest {
237-
request_id,
238-
body: serde_json::to_vec(&res)?,
239-
}
240-
.into_req()?,
236+
Ok(res) => EventCompletionRequest { request_id, body: res }.into_req()?,
241237
Err(err) => EventErrorRequest {
242238
request_id,
243239
diagnostic: Diagnostic {

0 commit comments

Comments
 (0)