summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2016-12-21 10:53:33 +0100
committerLinus Färnstrand <linus@mullvad.net>2016-12-21 10:53:33 +0100
commit59e3c9b7fbc2cb1e65e8420cbb93b2e6edf8c342 (patch)
treee6fc647d73727a2b2e2da108198e17a57a00f96d /src
parentceff53ed4fe81d3ad35c41d2307815add4347c75 (diff)
parent7dd934424bf530853c07e834eda929914476bd6b (diff)
downloadmullvadvpn-59e3c9b7fbc2cb1e65e8420cbb93b2e6edf8c342.tar.xz
mullvadvpn-59e3c9b7fbc2cb1e65e8420cbb93b2e6edf8c342.zip
Merge branch 'spawn-without-mut'
Diffstat (limited to 'src')
-rw-r--r--src/process.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process.rs b/src/process.rs
index 6239f535e7..b849e16348 100644
--- a/src/process.rs
+++ b/src/process.rs
@@ -39,13 +39,13 @@ impl OpenVpnBuilder {
}
/// Executes the OpenVPN process as a child process, returning a handle to it.
- pub fn spawn(&mut self) -> io::Result<Child> {
+ pub fn spawn(&self) -> io::Result<Child> {
let mut command = self.create_command();
command.args(&self.get_arguments());
command.spawn()
}
- fn create_command(&mut self) -> Command {
+ fn create_command(&self) -> Command {
let mut command = Command::new(&self.openvpn_bin);
command.env_clear()
.stdin(Stdio::null())