diff options
author | Kirill Chibisov <wchibisovkirill@gmail.com> | 2019-10-14 23:34:54 +0300 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-10-14 22:34:54 +0200 |
commit | 124e98e94e66d5790d4523adb9cd75f85a4691f4 (patch) | |
tree | a88e8ae7dcc035fee159dc142a35eb484dbd4fe8 /alacritty/src/main.rs | |
parent | 401c2aab964b60e8c3b072e5098ba8e366d04944 (diff) | |
download | r-alacritty-124e98e94e66d5790d4523adb9cd75f85a4691f4.tar.gz r-alacritty-124e98e94e66d5790d4523adb9cd75f85a4691f4.tar.bz2 r-alacritty-124e98e94e66d5790d4523adb9cd75f85a4691f4.zip |
Fix logged config path separators on Windows
It was discovered that we were logging path with `\\` instead of `\` as
separators on Windows due to use of Debug formatting instead of Display
for paths.
Diffstat (limited to 'alacritty/src/main.rs')
-rw-r--r-- | alacritty/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs index 65e13a62..d3419f78 100644 --- a/alacritty/src/main.rs +++ b/alacritty/src/main.rs @@ -111,7 +111,7 @@ fn main() { // Clean up logfile if let Some(log_file) = log_file { if !persistent_logging && fs::remove_file(&log_file).is_ok() { - let _ = writeln!(io::stdout(), "Deleted log file at {:?}", log_file); + let _ = writeln!(io::stdout(), "Deleted log file at \"{}\"", log_file.display()); } } } @@ -123,7 +123,7 @@ fn main() { fn run(window_event_loop: GlutinEventLoop<Event>, config: Config) -> Result<(), Box<dyn Error>> { info!("Welcome to Alacritty"); if let Some(config_path) = &config.config_path { - info!("Configuration loaded from {:?}", config_path.display()); + info!("Configuration loaded from \"{}\"", config_path.display()); }; // Set environment variables |