Skip to content

Commit

Permalink
Remove unstable rustfmt options
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <[email protected]>
  • Loading branch information
sagudev committed Aug 18, 2024
1 parent e871a15 commit cd5a4c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
7 changes: 0 additions & 7 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
match_block_trailing_comma = true
match_arm_blocks = false
binop_separator = "Back"
reorder_imports = true
# TODO(dlrobertson): gradually start formatting files
ignore = [
"src/platform",
"src/ipc.rs"
]
10 changes: 6 additions & 4 deletions src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl Router {
match result {
// Message came from the RouterProxy. Listen on our `msg_receiver`
// channel.
IpcSelectionResult::MessageReceived(id, _) if id == self.msg_wakeup_id =>
IpcSelectionResult::MessageReceived(id, _) if id == self.msg_wakeup_id => {
match self.msg_receiver.recv().unwrap() {
RouterMsg::AddRoute(receiver, handler) => {
let new_receiver_id =
Expand All @@ -191,10 +191,12 @@ impl Router {
.expect("Failed to send comfirmation of shutdown.");
break;
},
},
}
},
// Event from one of our registered receivers, call callback.
IpcSelectionResult::MessageReceived(id, message) =>
self.handlers.get_mut(&id).unwrap()(message),
IpcSelectionResult::MessageReceived(id, message) => {
self.handlers.get_mut(&id).unwrap()(message)
},
IpcSelectionResult::ChannelClosed(id) => {
let _ = self.handlers.remove(&id).unwrap();
},
Expand Down

0 comments on commit cd5a4c4

Please sign in to comment.