mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
replace match by if let statements if possible
This commit is contained in:
parent
608511ddc3
commit
b78979d692
7 changed files with 39 additions and 58 deletions
|
@ -449,13 +449,11 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
while self.port.try_recv_compositor_msg().is_some() {}
|
||||
|
||||
// Tell the profiler, memory profiler, and scrolling timer to shut down.
|
||||
match ipc::channel() {
|
||||
Ok((sender, receiver)) => {
|
||||
self.time_profiler_chan.send(time::ProfilerMsg::Exit(sender));
|
||||
let _ = receiver.recv();
|
||||
},
|
||||
Err(_) => {},
|
||||
if let Ok((sender, receiver)) = ipc::channel() {
|
||||
self.time_profiler_chan.send(time::ProfilerMsg::Exit(sender));
|
||||
let _ = receiver.recv();
|
||||
}
|
||||
|
||||
self.delayed_composition_timer.shutdown();
|
||||
|
||||
self.shutdown_state = ShutdownState::FinishedShuttingDown;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue