chore: Rust 2024 edition

This commit is contained in:
Vukašin Vojinović 2025-09-25 12:51:41 +02:00 committed by Jacob Kauffmann
parent 8d9da92dba
commit 8a0b37bd36
16 changed files with 29 additions and 33 deletions

View file

@ -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;

View file

@ -3,7 +3,7 @@
use crate::PluginConfig;
use futures::{stream, Stream, StreamExt};
use futures::{Stream, StreamExt, stream};
use regex::Regex;
use std::path::PathBuf;

View file

@ -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,

View file

@ -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;