chore: update dependencies

This commit is contained in:
Vukašin Vojinović 2025-09-03 20:08:49 +02:00 committed by Michael Murphy
parent c5df9dcf88
commit b72b15d719
4 changed files with 28 additions and 32 deletions

View file

@ -140,9 +140,7 @@ impl Config {
pub fn system(name: &str, version: u64) -> Result<Self, Error> {
let path = sanitize_name(name)?.join(format!("v{version}"));
#[cfg(unix)]
let system_path = xdg::BaseDirectories::with_prefix("cosmic")
.map_err(std::io::Error::from)?
.find_data_file(path);
let system_path = xdg::BaseDirectories::with_prefix("cosmic").find_data_file(path);
#[cfg(windows)]
let system_path =
@ -164,9 +162,7 @@ impl Config {
// Search data file, which provides default (e.g. /usr/share)
#[cfg(unix)]
let system_path = xdg::BaseDirectories::with_prefix("cosmic")
.map_err(std::io::Error::from)?
.find_data_file(&path);
let system_path = xdg::BaseDirectories::with_prefix("cosmic").find_data_file(&path);
#[cfg(windows)]
let system_path =