Update bool pattern matching into if-else

This commit is contained in:
Piotr Szpetkowski 2019-01-30 20:54:12 +01:00
parent 65370f17c9
commit abd577bfd4
No known key found for this signature in database
GPG key ID: D3FEC6AE666BC5B1
5 changed files with 50 additions and 49 deletions

View file

@ -614,11 +614,12 @@ where
// If we are in multiprocess mode,
// a dedicated per-process hang monitor will be initialized later inside the content process.
// See run_content_process in servo/lib.rs
let background_monitor_register = match opts::multiprocess() {
true => None,
false => Some(HangMonitorRegister::init(
let background_monitor_register = if opts::multiprocess() {
None
} else {
Some(HangMonitorRegister::init(
background_hang_monitor_sender.clone(),
)),
))
};
let (ipc_layout_sender, ipc_layout_receiver) =