chore: update dependencies

This commit is contained in:
Vukašin Vojinović 2026-04-03 00:09:03 +02:00 • committed by Michael Murphy
parent a8d9416754
commit 2aa2c841fa
15 changed files with 1061 additions and 1159 deletions

View file

@ -1,11 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
use cosmic::widget;
use std::{
cmp::Ordering,
fs, io,
path::{Path, PathBuf},
};
use std::cmp::Ordering;
use std::path::{Path, PathBuf};
use std::{fs, io};
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum ProjectNode {
@ -26,15 +24,15 @@ impl ProjectNode {
let path = fs::canonicalize(path)?;
let name = path
.file_name()
.ok_or(io::Error::new(
io::ErrorKind::Other,
format!("path {:?} has no file name", path),
))?
.ok_or(io::Error::other(format!(
"path {:?} has no file name",
path
)))?
.to_str()
.ok_or(io::Error::new(
io::ErrorKind::Other,
format!("path {:?} is not valid UTF-8", path),
))?
.ok_or(io::Error::other(format!(
"path {:?} is not valid UTF-8",
path
)))?
.to_string();
Ok(if path.is_dir() {
Self::Folder {
@ -94,7 +92,7 @@ impl Ord for ProjectNode {
}
}
}
crate::localize::sorter().compare(self.name(), other.name())
crate::localize::LANGUAGE_SORTER.compare(self.name(), other.name())
}
}