Skip to content

Commit

Permalink
chore(test): Resolve unnecessary fallible conversions (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Aug 3, 2024
1 parent b93b89f commit 3a16662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic-web/src/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 3a16662

Please sign in to comment.