chore: Rust 2024 edition
This commit is contained in:
parent
8d9da92dba
commit
8a0b37bd36
16 changed files with 29 additions and 33 deletions
|
|
@ -17,10 +17,10 @@ use crate::priority::Priority;
|
|||
use crate::recent::RecentUseStorage;
|
||||
use clap::Parser;
|
||||
use flume::{Receiver, Sender};
|
||||
use futures::{future, SinkExt, Stream, StreamExt};
|
||||
use futures::{SinkExt, Stream, StreamExt, future};
|
||||
use pop_launcher::{
|
||||
json_input_stream, plugin_paths, ContextOption, IconSource, Indice, PluginResponse,
|
||||
PluginSearchResult, Request, Response, SearchResult,
|
||||
ContextOption, IconSource, Indice, PluginResponse, PluginSearchResult, Request, Response,
|
||||
SearchResult, json_input_stream, plugin_paths,
|
||||
};
|
||||
use regex::Regex;
|
||||
use slab::Slab;
|
||||
|
|
|
|||
2
service/src/plugins/external/load.rs
vendored
2
service/src/plugins/external/load.rs
vendored
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
use crate::PluginConfig;
|
||||
|
||||
use futures::{stream, Stream, StreamExt};
|
||||
use futures::{Stream, StreamExt, stream};
|
||||
use regex::Regex;
|
||||
use std::path::PathBuf;
|
||||
|
||||
|
|
|
|||
4
service/src/plugins/external/mod.rs
vendored
4
service/src/plugins/external/mod.rs
vendored
|
|
@ -8,8 +8,8 @@ use std::{
|
|||
path::PathBuf,
|
||||
process::Stdio,
|
||||
sync::{
|
||||
atomic::{AtomicBool, Ordering},
|
||||
Arc,
|
||||
atomic::{AtomicBool, Ordering},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ use tokio::{
|
|||
process::{Child, Command},
|
||||
task::JoinHandle,
|
||||
};
|
||||
use tracing::{event, Level};
|
||||
use tracing::{Level, event};
|
||||
|
||||
pub struct ExternalPlugin {
|
||||
id: usize,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||
use std::collections::{hash_map::DefaultHasher, HashMap};
|
||||
use std::collections::{HashMap, hash_map::DefaultHasher};
|
||||
use std::hash::{Hash, Hasher};
|
||||
|
||||
const SHORTTERM_CAP: usize = 20;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue