chore: cargo fix

This commit is contained in:
Kat Inskip 2025-10-27 04:38:53 -07:00
parent 0ade7d9539
commit f8a5b1595f
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
5 changed files with 5 additions and 60 deletions

View file

@ -1,21 +1,11 @@
use { use {
crate::{handlers::WhatDo, CFG_DIR}, crate::{handlers::WhatDo, CFG_DIR},
anyhow::anyhow,
freedesktop_desktop_entry::{default_paths, get_languages_from_env, DesktopEntry, Iter},
indexmap::IndexMap, indexmap::IndexMap,
is_executable::IsExecutable,
rmp_serde::Serializer, rmp_serde::Serializer,
serde::{Deserialize, Serialize}, serde::{Deserialize, Serialize},
std::{ std::{
collections::HashSet, fs::File,
env, io::{BufReader, Write},
fs::{read_to_string, File},
io::{pipe, BufReader, Write},
mem,
os::unix::ffi::OsStrExt,
path::Path,
process::{Command, Stdio},
sync::Arc,
}, },
}; };
// honestly it's probably inefficient to store a usize for how many times a program has been opened // honestly it's probably inefficient to store a usize for how many times a program has been opened

View file

@ -1,21 +1,11 @@
use { use {
crate::CFG_DIR, crate::CFG_DIR,
anyhow::anyhow,
freedesktop_desktop_entry::{default_paths, get_languages_from_env, DesktopEntry, Iter},
indexmap::IndexMap,
is_executable::IsExecutable,
rmp_serde::Serializer,
serde::{Deserialize, Serialize}, serde::{Deserialize, Serialize},
std::{ std::{
collections::HashSet,
env, env,
fs::{read_to_string, File}, fs::{read_to_string, File},
io::{pipe, BufReader, Write}, io::Write,
mem,
os::unix::ffi::OsStrExt, os::unix::ffi::OsStrExt,
path::Path,
process::{Command, Stdio},
sync::Arc,
}, },
}; };

View file

@ -1,18 +1,8 @@
use { use {
crate::config::AdapterConfig, crate::config::AdapterConfig,
anyhow::anyhow, anyhow::anyhow,
freedesktop_desktop_entry::{default_paths, get_languages_from_env, DesktopEntry, Iter},
indexmap::IndexMap,
is_executable::IsExecutable,
rmp_serde::Serializer,
serde::{Deserialize, Serialize},
std::{ std::{
collections::HashSet,
env,
fs::{read_to_string, File},
io::{pipe, BufReader, Write},
mem, mem,
os::unix::ffi::OsStrExt,
path::Path, path::Path,
process::{Command, Stdio}, process::{Command, Stdio},
sync::Arc, sync::Arc,

View file

@ -5,23 +5,11 @@ use {
handlers::{handle_terminal, handle_xdg, WhatDo}, handlers::{handle_terminal, handle_xdg, WhatDo},
store::AdapterStore, store::AdapterStore,
}, },
anyhow::anyhow,
clap::{Parser, ValueEnum}, clap::{Parser, ValueEnum},
freedesktop_desktop_entry::{default_paths, get_languages_from_env, DesktopEntry, Iter},
indexmap::IndexMap,
is_executable::IsExecutable,
rmp_serde::Serializer,
serde::{Deserialize, Serialize},
std::{ std::{
collections::HashSet, io::{pipe, Write},
env,
fs::{read_to_string, File},
io::{pipe, BufReader, Write},
mem,
os::unix::ffi::OsStrExt, os::unix::ffi::OsStrExt,
path::Path,
process::{Command, Stdio}, process::{Command, Stdio},
sync::Arc,
}, },
}; };

View file

@ -1,22 +1,9 @@
use { use {
crate::{cache::AdapterCache, handlers::WhatDo}, crate::{cache::AdapterCache, handlers::WhatDo},
anyhow::anyhow,
freedesktop_desktop_entry::{default_paths, get_languages_from_env, DesktopEntry, Iter}, freedesktop_desktop_entry::{default_paths, get_languages_from_env, DesktopEntry, Iter},
indexmap::IndexMap, indexmap::IndexMap,
is_executable::IsExecutable, is_executable::IsExecutable,
rmp_serde::Serializer, std::{collections::HashSet, env, sync::Arc},
serde::{Deserialize, Serialize},
std::{
collections::HashSet,
env,
fs::{read_to_string, File},
io::{pipe, BufReader, Write},
mem,
os::unix::ffi::OsStrExt,
path::Path,
process::{Command, Stdio},
sync::Arc,
},
}; };
#[derive(Clone, Default)] #[derive(Clone, Default)]