mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update bool pattern matching into if-else
This commit is contained in:
parent
65370f17c9
commit
abd577bfd4
5 changed files with 50 additions and 49 deletions
|
@ -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) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue