diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-01-24 15:02:13 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-01-24 15:02:13 +0100 |
| commit | 6fc679ad562126a8fda3cdd24ebcc3f409068d4b (patch) | |
| tree | c94ec962669ca633d282444b0b85cbb3a955792c /src/process/monitor.rs | |
| parent | 789b2ff929cf567cbf89628e487f656e00f08e3a (diff) | |
| download | mullvadvpn-6fc679ad562126a8fda3cdd24ebcc3f409068d4b.tar.xz mullvadvpn-6fc679ad562126a8fda3cdd24ebcc3f409068d4b.zip | |
Run rustfmt 0.7.1
Diffstat (limited to 'src/process/monitor.rs')
| -rw-r--r-- | src/process/monitor.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/process/monitor.rs b/src/process/monitor.rs index 2b88271ca9..b2080b93de 100644 --- a/src/process/monitor.rs +++ b/src/process/monitor.rs @@ -135,9 +135,7 @@ fn spawn_state_machine<C, B>(builder: B) -> Sender<MonitorMsg> { let state_machine = StateMachine::new(builder); let tx = state_machine.get_handle(); - thread::spawn(move || { - state_machine.run(); - }); + thread::spawn(move || { state_machine.run(); }); tx } @@ -295,13 +293,13 @@ impl Drop for ChildMonitor { #[cfg(test)] mod child_monitor { + use super::*; use std::io; use std::process::{ChildStdout, ChildStderr}; use std::sync::{Arc, Mutex}; use std::sync::mpsc::{self, Sender, Receiver}; use std::thread; use std::time::Duration; - use super::*; #[derive(Clone)] struct MockChild { |
