Skip to content

Commit

Permalink
keeping LSP test intact
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Sep 10, 2024
1 parent da8d854 commit 2583e0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sway-lsp/tests/integration/code_actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ pub(crate) async fn code_action_struct_request(server: &ServerState, uri: &Url)
}

pub(crate) async fn code_action_struct_type_params_request(server: &ServerState, uri: &Url) {
dbg!(uri);
let params = create_code_action_params(
uri.clone(),
Range {
Expand Down Expand Up @@ -400,7 +401,7 @@ pub(crate) async fn code_action_struct_type_params_request(server: &ServerState,
));

let actual = send_request(server, &params).await;
assert_eq!(expected, actual);
pretty_assertions::assert_eq!(expected, actual);
}

pub(crate) async fn code_action_struct_existing_impl_request(server: &ServerState, uri: &Url) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
script;

use std::u128::*;
use std::vec::*;

struct Data<T> {
value: T,
Expand Down Expand Up @@ -213,6 +212,8 @@ fn generic_impl_self_test() {
assert(u.first.value + u.second.value == 7u8);
}

use std::vec::*;

impl<T> Vec<T> {
pub fn with(self, with_value: T) -> Self {
let mut inside_vec = self;
Expand Down

0 comments on commit 2583e0a

Please sign in to comment.