diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-05-09 17:10:57 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-05-09 17:10:57 -0300 |
| commit | 6f1c402f79a92a1ff875a2a2507841c19f571430 (patch) | |
| tree | 62ef1a51eceb9bf4de7fb95c20eaa2493871029f | |
| parent | 2bf6f5c91093493e6a0c38e7933998b68984dd18 (diff) | |
| download | mullvadvpn-6f1c402f79a92a1ff875a2a2507841c19f571430.tar.xz mullvadvpn-6f1c402f79a92a1ff875a2a2507841c19f571430.zip | |
Move `Command` import to platform-specific func.
| -rw-r--r-- | mullvad-daemon/src/bin/problem-report.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mullvad-daemon/src/bin/problem-report.rs b/mullvad-daemon/src/bin/problem-report.rs index 666df33c3d..304d572212 100644 --- a/mullvad-daemon/src/bin/problem-report.rs +++ b/mullvad-daemon/src/bin/problem-report.rs @@ -26,7 +26,6 @@ use std::env; use std::fs::File; use std::io::{self, BufWriter, Read, Seek, SeekFrom, Write}; use std::path::{Path, PathBuf}; -use std::process::Command; /// Maximum number of bytes to read from each log file const LOG_MAX_READ_BYTES: usize = 1 * 1024 * 1024; @@ -393,6 +392,8 @@ fn os_version() -> String { /// Helper for getting stdout of some command as a String. Ignores the exit code of the command. #[cfg(any(target_os = "linux", target_os = "macos"))] fn command_stdout_lossy(cmd: &str, args: &[&str]) -> Option<String> { + use std::process::Command; + Command::new(cmd) .args(args) .output() |
