diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-02-17 00:20:22 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-02-18 23:39:04 +0100 |
| commit | 08f6eb436f03ba0c68d2a1e460e6ca42048124d6 (patch) | |
| tree | 96c749044092a70d3c6d5b2a9b616f4c74f08fa9 /mullvad-cli/src | |
| parent | 33a2edadad1c3b5fe7ea667f6b7ad4dd97c69ec3 (diff) | |
| download | mullvadvpn-08f6eb436f03ba0c68d2a1e460e6ca42048124d6.tar.xz mullvadvpn-08f6eb436f03ba0c68d2a1e460e6ca42048124d6.zip | |
Add conditional compilation to stuff not needed on Windows
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/rpc.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mullvad-cli/src/rpc.rs b/mullvad-cli/src/rpc.rs index 5e14cdf195..00c3a53b48 100644 --- a/mullvad-cli/src/rpc.rs +++ b/mullvad-cli/src/rpc.rs @@ -3,7 +3,9 @@ use serde; use std::fs::{File, Metadata}; use std::io::{self, BufRead, BufReader}; -use std::path::{Path, PathBuf}; +#[cfg(unix)] +use std::path::Path; +use std::path::PathBuf; use talpid_ipc::WsIpcClient; @@ -73,7 +75,7 @@ fn is_rpc_file_trusted(metadata: Metadata) -> bool { } #[cfg(windows)] -fn is_rpc_file_trusted(metadata: Metadata) -> bool { +fn is_rpc_file_trusted(_metadata: Metadata) -> bool { // TODO: Check permissions correctly true } |
