diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-01-10 10:21:00 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-01-10 10:21:00 +0100 |
| commit | 399f1380fb825b077dd5c6ce1e1db7b94a55a92e (patch) | |
| tree | 2d68104b5b89c869611b2a9546fdd15418fc1683 /src | |
| parent | cbdb4cc03b2558cdf055b1ed19a3e90314bfdbb3 (diff) | |
| download | mullvadvpn-399f1380fb825b077dd5c6ce1e1db7b94a55a92e.tar.xz mullvadvpn-399f1380fb825b077dd5c6ce1e1db7b94a55a92e.zip | |
Mark child as unused in StoppingState
Diffstat (limited to 'src')
| -rw-r--r-- | src/process/monitor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process/monitor.rs b/src/process/monitor.rs index 9e5f2e21fa..2b88271ca9 100644 --- a/src/process/monitor.rs +++ b/src/process/monitor.rs @@ -116,7 +116,7 @@ struct RunningState<C: MonitoredChild> { } struct StoppingState<C: MonitoredChild> { - child: C, + _child: C, } // Messages sent internally between the `ChildMonitor`, `StateMachine` and the thread that monitors @@ -222,7 +222,7 @@ impl<C: MonitoredChild, B: ChildSpawner<C>> StateMachine<C, B> { }; match result { Ok(child) => { - self.state = State::Stopping(StoppingState { child: child }); + self.state = State::Stopping(StoppingState { _child: child }); Ok(()) } Err(e) => Err(e), |
