From 9606c5bb2011bbe326fa02523da350f6437b867e Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 4 Dec 2024 06:03:02 +0900 Subject: [PATCH] chore(web): Remove converting to same type (#2085) --- tonic-web/src/call.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tonic-web/src/call.rs b/tonic-web/src/call.rs index 3c74e9bdb..facef3614 100644 --- a/tonic-web/src/call.rs +++ b/tonic-web/src/call.rs @@ -541,9 +541,7 @@ mod tests { let trailers = make_trailers_frame(headers.clone()); - let buf = Bytes::from(trailers); - - let map = decode_trailers_frame(buf).unwrap().unwrap(); + let map = decode_trailers_frame(trailers).unwrap().unwrap(); assert_eq!(headers, map); }