cargo fmt

Pure formatting, no functional change.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Bendik Aagaard Lynghaug
2026-10-03 09:16:15 +00:00
co-authored by Claude Fable 5.1
parent 856f8d8bf4
commit 42ffe9c492
14 changed files with 52 additions and 47 deletions
+5 -2
View File
@@ -2,7 +2,7 @@ use std::{
cmp::Ordering,
collections::HashSet,
error::Error,
fs::{read_to_string, File},
fs::{File, read_to_string},
hash::{Hash, Hasher},
io::{Error as io_error, ErrorKind},
path::Path,
@@ -104,7 +104,10 @@ pub fn load_desktop_files() -> Vec<Desktop> {
let mut seen: HashSet<String> = HashSet::new();
for dir in dirs {
for entry in WalkDir::new(format!("{}/applications", dir)).into_iter().flatten() {
for entry in WalkDir::new(format!("{}/applications", dir))
.into_iter()
.flatten()
{
// Entries are often symlinks, so only rule out directories.
if entry.file_type().is_dir()
|| entry.path().extension().and_then(|e| e.to_str()) != Some("desktop")