From 3a1666233ab36c3cbe37da2ca689d0e6ffc58914 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 3 Aug 2024 16:25:35 +0900 Subject: [PATCH] chore(test): Resolve unnecessary fallible conversions (#1839) --- tonic-web/src/call.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tonic-web/src/call.rs b/tonic-web/src/call.rs index ce4e79358..0c45bf314 100644 --- a/tonic-web/src/call.rs +++ b/tonic-web/src/call.rs @@ -520,7 +520,7 @@ mod tests { #[test] fn decode_trailers() { let mut headers = HeaderMap::new(); - headers.insert("grpc-status", 0.try_into().unwrap()); + headers.insert("grpc-status", 0.into()); headers.insert("grpc-message", "this is a message".try_into().unwrap()); let trailers = make_trailers_frame(headers.clone());