diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2016-12-20 09:24:03 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2016-12-20 09:24:03 +0100 |
| commit | 7dd934424bf530853c07e834eda929914476bd6b (patch) | |
| tree | e6fc647d73727a2b2e2da108198e17a57a00f96d /src | |
| parent | ceff53ed4fe81d3ad35c41d2307815add4347c75 (diff) | |
| download | mullvadvpn-7dd934424bf530853c07e834eda929914476bd6b.tar.xz mullvadvpn-7dd934424bf530853c07e834eda929914476bd6b.zip | |
Remove mut requirement from self in spawn
Diffstat (limited to 'src')
| -rw-r--r-- | src/process.rs | 4 |
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()) |
