aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/mod.rs2
-rw-r--r--src/utils/watcher.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index a96c1bfc..8efa8654 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -213,7 +213,7 @@ pub fn expand_home(path: &Path) -> anyhow::Result<Option<PathBuf>> {
}
pub fn make_screenshot_path(config: &Config) -> anyhow::Result<Option<PathBuf>> {
- let Some(path) = &config.screenshot_path else {
+ let Some(path) = &config.screenshot_path.0 else {
return Ok(None);
};
diff --git a/src/utils/watcher.rs b/src/utils/watcher.rs
index 034e963a..ecb9007b 100644
--- a/src/utils/watcher.rs
+++ b/src/utils/watcher.rs
@@ -128,7 +128,7 @@ pub fn setup(state: &mut State, config_path: &ConfigPath) {
// Parsing the config actually takes > 20 ms on my beefy machine, so let's do it on the
// watcher thread.
let process = |path: &ConfigPath| {
- path.load().map_err(|err| {
+ path.load().config.map_err(|err| {
warn!("{err:?}");
})
};