chore: update dependencies
This commit is contained in:
parent
c5df9dcf88
commit
b72b15d719
4 changed files with 28 additions and 32 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue