mirror of
https://github.com/kittywitch/fzfdapter.git
synced 2026-02-09 06:39:19 -08:00
chore: cargo fix
This commit is contained in:
parent
0ade7d9539
commit
f8a5b1595f
5 changed files with 5 additions and 60 deletions
14
src/cache.rs
14
src/cache.rs
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
14
src/main.rs
14
src/main.rs
|
|
@ -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,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
15
src/store.rs
15
src/store.rs
|
|
@ -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)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue