diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-13 20:40:26 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-13 20:40:26 +0200 |
commit | fa79bd7eef3824ad208984df9cc7784bdab5ba2b (patch) | |
tree | 5f1f95e0d0a4c9abb31c58832b4bbd78b72e1dd4 /yt/src | |
parent | build(flake): Add `git-bug` to the devshell (diff) | |
download | yt-fa79bd7eef3824ad208984df9cc7784bdab5ba2b.zip |
build(treewide): Update
Diffstat (limited to 'yt/src')
-rw-r--r-- | yt/src/config/default.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt/src/config/default.rs b/yt/src/config/default.rs index a1d327a..4ed643b 100644 --- a/yt/src/config/default.rs +++ b/yt/src/config/default.rs @@ -14,19 +14,19 @@ use std::path::PathBuf; use anyhow::{Context, Result}; fn get_runtime_path(name: &'static str) -> Result<PathBuf> { - let xdg_dirs = xdg::BaseDirectories::with_prefix(PREFIX)?; + let xdg_dirs = xdg::BaseDirectories::with_prefix(PREFIX); xdg_dirs .place_runtime_file(name) .with_context(|| format!("Failed to place runtime file: '{name}'")) } fn get_data_path(name: &'static str) -> Result<PathBuf> { - let xdg_dirs = xdg::BaseDirectories::with_prefix(PREFIX)?; + let xdg_dirs = xdg::BaseDirectories::with_prefix(PREFIX); xdg_dirs .place_data_file(name) .with_context(|| format!("Failed to place data file: '{name}'")) } fn get_config_path(name: &'static str) -> Result<PathBuf> { - let xdg_dirs = xdg::BaseDirectories::with_prefix(PREFIX)?; + let xdg_dirs = xdg::BaseDirectories::with_prefix(PREFIX); xdg_dirs .place_config_file(name) .with_context(|| format!("Failed to place config file: '{name}'")) |