Skip to content

Commit

Permalink
refactor: review
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Dec 8, 2023
1 parent e0fb3f3 commit eba6abd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions components/clarity-lsp/src/common/requests/signature_help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -97,12 +97,7 @@ mod definitions_visitor_tests {
source: &str,
position: &Position,
) -> Option<Vec<lsp_types::SignatureInformation>> {
let contract = &ActiveContractData::new(
Clarity2,
clarity_repl::clarity::StacksEpochId::Epoch21,
None,
source,
);
let contract = &ActiveContractData::new(Clarity2, Epoch21, None, source);
get_signatures(&contract, position)
}

Expand Down

0 comments on commit eba6abd

Please sign in to comment.