summaryrefslogtreecommitdiffhomepage
path: root/src/process
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-01-10 10:21:00 +0100
committerLinus Färnstrand <linus@mullvad.net>2017-01-10 10:21:00 +0100
commit399f1380fb825b077dd5c6ce1e1db7b94a55a92e (patch)
tree2d68104b5b89c869611b2a9546fdd15418fc1683 /src/process
parentcbdb4cc03b2558cdf055b1ed19a3e90314bfdbb3 (diff)
downloadmullvadvpn-399f1380fb825b077dd5c6ce1e1db7b94a55a92e.tar.xz
mullvadvpn-399f1380fb825b077dd5c6ce1e1db7b94a55a92e.zip
Mark child as unused in StoppingState
Diffstat (limited to 'src/process')
-rw-r--r--src/process/monitor.rs4
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),