Remove the 2s from source code

This commit is contained in:
Mikayla 2023-11-02 10:55:02 -07:00
parent a3565225ad
commit d11ff14b57
No known key found for this signature in database
115 changed files with 1473 additions and 1549 deletions

View file

@ -1,6 +1,6 @@
use crate::Diagnostic;
use collections::HashMap;
use lsp2::LanguageServerId;
use lsp::LanguageServerId;
use std::{
cmp::{Ordering, Reverse},
iter,
@ -37,14 +37,14 @@ pub struct Summary {
impl<T> DiagnosticEntry<T> {
// Used to provide diagnostic context to lsp codeAction request
pub fn to_lsp_diagnostic_stub(&self) -> lsp2::Diagnostic {
pub fn to_lsp_diagnostic_stub(&self) -> lsp::Diagnostic {
let code = self
.diagnostic
.code
.clone()
.map(lsp2::NumberOrString::String);
.map(lsp::NumberOrString::String);
lsp2::Diagnostic {
lsp::Diagnostic {
code,
severity: Some(self.diagnostic.severity),
..Default::default()