From eba6abddbc5c2ff8490e9520349f3055bea925ea Mon Sep 17 00:00:00 2001 From: Hugo Caillard <911307+hugocaillard@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:17:35 +0100 Subject: [PATCH] refactor: review --- .../clarity-lsp/src/common/requests/signature_help.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/components/clarity-lsp/src/common/requests/signature_help.rs b/components/clarity-lsp/src/common/requests/signature_help.rs index 065e5378f..84859522c 100644 --- a/components/clarity-lsp/src/common/requests/signature_help.rs +++ b/components/clarity-lsp/src/common/requests/signature_help.rs @@ -86,7 +86,7 @@ pub fn get_signatures( #[cfg(test)] mod definitions_visitor_tests { use clarity_repl::clarity::functions::NativeFunctions; - use clarity_repl::clarity::ClarityVersion::Clarity2; + use clarity_repl::clarity::{ClarityVersion::Clarity2, StacksEpochId::Epoch21}; use lsp_types::{ParameterInformation, ParameterLabel::Simple, Position, SignatureInformation}; use crate::state::ActiveContractData; @@ -97,12 +97,7 @@ mod definitions_visitor_tests { source: &str, position: &Position, ) -> Option> { - let contract = &ActiveContractData::new( - Clarity2, - clarity_repl::clarity::StacksEpochId::Epoch21, - None, - source, - ); + let contract = &ActiveContractData::new(Clarity2, Epoch21, None, source); get_signatures(&contract, position) }