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 {
crate::{handlers::WhatDo, 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},
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,
fs::File,
io::{BufReader, Write},
},
};
// 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 {
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},
std::{
collections::HashSet,
env,
fs::{read_to_string, File},
io::{pipe, BufReader, Write},
mem,
io::Write,
os::unix::ffi::OsStrExt,
path::Path,
process::{Command, Stdio},
sync::Arc,
},
};

View file

@ -1,18 +1,8 @@
use {
crate::config::AdapterConfig,
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::{
collections::HashSet,
env,
fs::{read_to_string, File},
io::{pipe, BufReader, Write},
mem,
os::unix::ffi::OsStrExt,
path::Path,
process::{Command, Stdio},
sync::Arc,

View file

@ -5,23 +5,11 @@ use {
handlers::{handle_terminal, handle_xdg, WhatDo},
store::AdapterStore,
},
anyhow::anyhow,
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::{
collections::HashSet,
env,
fs::{read_to_string, File},
io::{pipe, BufReader, Write},
mem,
io::{pipe, Write},
os::unix::ffi::OsStrExt,
path::Path,
process::{Command, Stdio},
sync::Arc,
},
};

View file

@ -1,22 +1,9 @@
use {
crate::{cache::AdapterCache, handlers::WhatDo},
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::{
collections::HashSet,
env,
fs::{read_to_string, File},
io::{pipe, BufReader, Write},
mem,
os::unix::ffi::OsStrExt,
path::Path,
process::{Command, Stdio},
sync::Arc,
},
std::{collections::HashSet, env, sync::Arc},
};
#[derive(Clone, Default)]