diff options
Diffstat (limited to 'alacritty_terminal/src/config/mod.rs')
-rw-r--r-- | alacritty_terminal/src/config/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alacritty_terminal/src/config/mod.rs b/alacritty_terminal/src/config/mod.rs index 3c8a85a4..f3257b7b 100644 --- a/alacritty_terminal/src/config/mod.rs +++ b/alacritty_terminal/src/config/mod.rs @@ -15,7 +15,7 @@ use std::borrow::Cow; use std::collections::HashMap; use std::fmt::Display; -use std::path::PathBuf; +use std::path::{Path, PathBuf}; use log::error; use serde::{Deserialize, Deserializer}; @@ -209,8 +209,8 @@ impl<T> Config<T> { } #[inline] - pub fn working_directory(&self) -> &Option<PathBuf> { - &self.working_directory + pub fn working_directory(&self) -> Option<&Path> { + self.working_directory.as_ref().map(|path_buf| path_buf.as_path()) } #[inline] |