mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
remove redundant imports (#10154)
This commit is contained in:
parent
1539312558
commit
3e2b85c61b
@ -2,7 +2,7 @@
|
|||||||
requests::DisconnectArguments,
|
requests::DisconnectArguments,
|
||||||
transport::{Payload, Request, Response, Transport},
|
transport::{Payload, Request, Response, Transport},
|
||||||
types::*,
|
types::*,
|
||||||
Error, Result, ThreadId,
|
Error, Result,
|
||||||
};
|
};
|
||||||
use helix_core::syntax::DebuggerQuirks;
|
use helix_core::syntax::DebuggerQuirks;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
use helix_core::{find_workspace, syntax::LanguageServerFeature, ChangeSet, Rope};
|
use helix_core::{find_workspace, syntax::LanguageServerFeature, ChangeSet, Rope};
|
||||||
use helix_loader::{self, VERSION_AND_GIT_HASH};
|
use helix_loader::VERSION_AND_GIT_HASH;
|
||||||
use helix_stdx::path;
|
use helix_stdx::path;
|
||||||
use lsp::{
|
use lsp::{
|
||||||
notification::DidChangeWorkspaceFolders, CodeActionCapabilityResolveSupport,
|
notification::DidChangeWorkspaceFolders, CodeActionCapabilityResolveSupport,
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
use helix_core::fuzzy::fuzzy_match;
|
use helix_core::fuzzy::fuzzy_match;
|
||||||
use helix_core::indent::MAX_INDENT;
|
use helix_core::indent::MAX_INDENT;
|
||||||
use helix_core::{encoding, line_ending, shellwords::Shellwords};
|
use helix_core::{line_ending, shellwords::Shellwords};
|
||||||
use helix_view::document::DEFAULT_LANGUAGE_NAME;
|
use helix_view::document::DEFAULT_LANGUAGE_NAME;
|
||||||
use helix_view::editor::{Action, CloseError, ConfigEvent};
|
use helix_view::editor::{CloseError, ConfigEvent};
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
use ui::completers::{self, Completer};
|
use ui::completers::{self, Completer};
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ pub mod provider {
|
|||||||
|
|
||||||
#[cfg(feature = "term")]
|
#[cfg(feature = "term")]
|
||||||
mod osc52 {
|
mod osc52 {
|
||||||
use {super::ClipboardType, crate::base64, crossterm};
|
use {super::ClipboardType, crate::base64};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct SetClipboardCommand {
|
pub struct SetClipboardCommand {
|
||||||
@ -255,7 +255,7 @@ fn set_contents(&mut self, content: String, clipboard_type: ClipboardType) -> Re
|
|||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
pub mod command {
|
pub mod command {
|
||||||
use super::*;
|
use super::*;
|
||||||
use anyhow::{bail, Context as _, Result};
|
use anyhow::{bail, Context as _};
|
||||||
|
|
||||||
#[cfg(not(any(windows, target_os = "macos")))]
|
#[cfg(not(any(windows, target_os = "macos")))]
|
||||||
pub fn is_exit_success(program: &str, args: &[&str]) -> bool {
|
pub fn is_exit_success(program: &str, args: &[&str]) -> bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user