Skip to content

Commit 2e6867b

Browse files
Make cargo fmt happy
Signed-off-by: erikness-doordash <[email protected]>
1 parent aeaa5db commit 2e6867b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/dispatcher.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,7 @@ impl Dispatcher {
429429

430430
fn on_grpc_receive_initial_metadata(&self, token_id: u32, headers: u32) {
431431
let grpc_streams_ref = self.grpc_streams.borrow_mut();
432-
let context_id_hash_slot = grpc_streams_ref
433-
.get(&token_id);
432+
let context_id_hash_slot = grpc_streams_ref.get(&token_id);
434433
let context_id = match context_id_hash_slot {
435434
Some(id) => *id,
436435
None => {
@@ -492,8 +491,7 @@ impl Dispatcher {
492491

493492
fn on_grpc_receive_trailing_metadata(&self, token_id: u32, trailers: u32) {
494493
let grpc_streams_ref = self.grpc_streams.borrow_mut();
495-
let context_id_hash_slot = grpc_streams_ref
496-
.get(&token_id);
494+
let context_id_hash_slot = grpc_streams_ref.get(&token_id);
497495
let context_id = match context_id_hash_slot {
498496
Some(id) => *id,
499497
None => {

0 commit comments

Comments
 (0)