Skip to content

Commit

Permalink
remote unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
erasin committed Jul 18, 2022
1 parent d96f71a commit a127242
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions helix-lsp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ pub enum OffsetEncoding {

pub mod util {
use super::*;
use helix_core::{Range, Rope, Transaction};
use lsp::NumberOrString;
use helix_core::{diagnostic::NumberOrString, Range, Rope, Transaction};

/// Converts a diagnostic in the document to [`lsp::Diagnostic`].
///
Expand All @@ -81,12 +80,8 @@ pub mod util {

let code = match diag.code.clone() {
Some(x) => match x {
helix_core::diagnostic::NumberOrString::Number(x) => {
Some(lsp::NumberOrString::Number(x))
}
helix_core::diagnostic::NumberOrString::String(x) => {
Some(lsp::NumberOrString::String(x))
}
NumberOrString::Number(x) => Some(lsp::NumberOrString::Number(x)),
NumberOrString::String(x) => Some(lsp::NumberOrString::String(x)),
},
None => None,
};
Expand Down

0 comments on commit a127242

Please sign in to comment.