diff options
| -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() |
