From 8144ce88de1a81ef641588be558e3435fae0776b Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 15 Aug 2024 00:10:21 +0200 Subject: [PATCH] fmt --- numbat-lsp/src/completion.rs | 4 +--- numbat-lsp/src/reference.rs | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/numbat-lsp/src/completion.rs b/numbat-lsp/src/completion.rs index 36c863ce..4565ac7e 100644 --- a/numbat-lsp/src/completion.rs +++ b/numbat-lsp/src/completion.rs @@ -50,9 +50,7 @@ pub fn get_completion_of( // Expr::List(exprs) => exprs // .iter() // .for_each(|expr| get_definition(expr, definition_ass_list)), - Expr::Local(local) => { - !(ident_offset >= local.1.start && ident_offset < local.1.end) - } + Expr::Local(local) => !(ident_offset >= local.1.start && ident_offset < local.1.end), Expr::Let(name, lhs, rest, _name_span) => { definition_map.insert( name.clone(), diff --git a/numbat-lsp/src/reference.rs b/numbat-lsp/src/reference.rs index 293bf9b8..16f03d70 100644 --- a/numbat-lsp/src/reference.rs +++ b/numbat-lsp/src/reference.rs @@ -3,7 +3,6 @@ use std::collections::HashMap; use chumsky::Span; use im_rc::Vector; - use crate::chumsky::{Expr, Func, Spanned}; #[derive(Debug, Clone)] pub enum ReferenceSymbol {