chore: Rust 2024 edition
This commit is contained in:
parent
8d9da92dba
commit
8a0b37bd36
16 changed files with 29 additions and 33 deletions
|
|
@ -1,13 +1,13 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright © 2021 System76
|
||||
|
||||
use fork::{daemon, Fork};
|
||||
use fork::{Fork, daemon};
|
||||
use pop_launcher::{Indice, PluginResponse, PluginSearchResult};
|
||||
use pop_launcher_toolkit::plugin_trait::{async_trait, PluginExt};
|
||||
use pop_launcher_toolkit::plugin_trait::{PluginExt, async_trait};
|
||||
use std::io;
|
||||
use std::os::unix::process::CommandExt;
|
||||
use std::path::PathBuf;
|
||||
use std::process::{exit, Command};
|
||||
use std::process::{Command, exit};
|
||||
|
||||
// This example demonstrate how to write a pop-launcher plugin using the `PluginExt` helper trait.
|
||||
// We are going to build a plugin to display man pages descriptions and open them on activation.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use futures::StreamExt;
|
||||
use pop_launcher::{async_stdin, async_stdout, json_input_stream, Indice, PluginResponse, Request};
|
||||
use pop_launcher::{Indice, PluginResponse, Request, async_stdin, async_stdout, json_input_stream};
|
||||
|
||||
pub use async_trait::async_trait;
|
||||
use pop_launcher_plugins as plugins;
|
||||
|
|
@ -122,7 +122,7 @@ where
|
|||
);
|
||||
|
||||
if let Ok(file) = logfile {
|
||||
use tracing_subscriber::{fmt, EnvFilter};
|
||||
use tracing_subscriber::{EnvFilter, fmt};
|
||||
fmt()
|
||||
.with_env_filter(EnvFilter::from_default_env())
|
||||
.with_writer(file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue