mirror of
https://github.com/helix-editor/helix
synced 2024-11-10 10:34:45 +01:00
Implement Error for InjectorShutdown
This commit is contained in:
parent
53ac833efb
commit
2c9f5b3efb
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1467,6 +1467,7 @@ dependencies = [
|
|||||||
"smallvec",
|
"smallvec",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"termini",
|
"termini",
|
||||||
|
"thiserror",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-stream",
|
"tokio-stream",
|
||||||
"toml",
|
"toml",
|
||||||
|
@ -56,6 +56,7 @@ ignore = "0.4"
|
|||||||
pulldown-cmark = { version = "0.11", default-features = false }
|
pulldown-cmark = { version = "0.11", default-features = false }
|
||||||
# file type detection
|
# file type detection
|
||||||
content_inspector = "0.2.4"
|
content_inspector = "0.2.4"
|
||||||
|
thiserror = "1.0"
|
||||||
|
|
||||||
# opening URLs
|
# opening URLs
|
||||||
open = "5.2.0"
|
open = "5.2.0"
|
||||||
|
@ -18,6 +18,7 @@ use futures_util::future::BoxFuture;
|
|||||||
use helix_event::AsyncHook;
|
use helix_event::AsyncHook;
|
||||||
use nucleo::pattern::CaseMatching;
|
use nucleo::pattern::CaseMatching;
|
||||||
use nucleo::{Config, Nucleo, Utf32String};
|
use nucleo::{Config, Nucleo, Utf32String};
|
||||||
|
use thiserror::Error;
|
||||||
use tokio::sync::mpsc::Sender;
|
use tokio::sync::mpsc::Sender;
|
||||||
use tui::{
|
use tui::{
|
||||||
buffer::Buffer as Surface,
|
buffer::Buffer as Surface,
|
||||||
@ -170,6 +171,8 @@ impl<I, D> Clone for Injector<I, D> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Error, Debug)]
|
||||||
|
#[error("picker has been shut down")]
|
||||||
pub struct InjectorShutdown;
|
pub struct InjectorShutdown;
|
||||||
|
|
||||||
impl<T, D> Injector<T, D> {
|
impl<T, D> Injector<T, D> {
|
||||||
|
Loading…
Reference in New Issue
Block a user