summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
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())