diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-05-16 17:40:38 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-05-17 03:00:54 +0200 |
| commit | 2774796534e9f4d98022865f0ab3ce1f82fa52cd (patch) | |
| tree | 7396070fb8060783c2c1efefb6152d10f7e7b199 /talpid-core/src | |
| parent | 573cc43b06730b6a4d59402e8772d06d3fd38910 (diff) | |
| download | mullvadvpn-2774796534e9f4d98022865f0ab3ce1f82fa52cd.tar.xz mullvadvpn-2774796534e9f4d98022865f0ab3ce1f82fa52cd.zip | |
Change from to_string_lossy() to display() on paths
Diffstat (limited to 'talpid-core/src')
| -rw-r--r-- | talpid-core/src/mktemp.rs | 2 | ||||
| -rw-r--r-- | talpid-core/src/tunnel/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/talpid-core/src/mktemp.rs b/talpid-core/src/mktemp.rs index fc39127069..424fffe171 100644 --- a/talpid-core/src/mktemp.rs +++ b/talpid-core/src/mktemp.rs @@ -35,7 +35,7 @@ impl Drop for TempFile { if e.kind() != io::ErrorKind::NotFound { error!( "Unable to remove temp file {}: {:?}", - self.path.to_string_lossy(), + self.path.display(), e ); } diff --git a/talpid-core/src/tunnel/mod.rs b/talpid-core/src/tunnel/mod.rs index 3cc21b47be..8ba7ef2740 100644 --- a/talpid-core/src/tunnel/mod.rs +++ b/talpid-core/src/tunnel/mod.rs @@ -205,7 +205,7 @@ impl TunnelMonitor { path.push(library); if path.exists() { - debug!("Using OpenVPN plugin at {}", path.to_string_lossy()); + debug!("Using OpenVPN plugin at {}", path.display()); Ok(path) } else { Err(ErrorKind::PluginNotFound.into()) @@ -253,7 +253,7 @@ impl TunnelMonitor { let temp_file = mktemp::TempFile::new(); debug!( "Writing user-pass credentials to {}", - temp_file.as_ref().to_string_lossy() + temp_file.as_ref().display() ); let mut file = fs::File::create(&temp_file)?; Self::set_user_pass_file_permissions(&file)?; |
