Skip to content

Commit 33d68f0

Browse files
committedMar 31, 2025
fix: unused
1 parent ae10fe4 commit 33d68f0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
 

Diff for: ‎crates/pgt_lsp/tests/server.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ use sqlx::Executor;
2323
use std::any::type_name;
2424
use std::fmt::Display;
2525
use std::time::Duration;
26-
use test_log::test;
2726
use tower::timeout::Timeout;
2827
use tower::{Service, ServiceExt};
2928
use tower_lsp::LspService;
3029
use tower_lsp::jsonrpc;
3130
use tower_lsp::jsonrpc::Response;
3231
use tower_lsp::lsp_types as lsp;
3332
use tower_lsp::lsp_types::CodeActionContext;
34-
use tower_lsp::lsp_types::CodeActionOrCommand;
3533
use tower_lsp::lsp_types::CodeActionParams;
3634
use tower_lsp::lsp_types::CodeActionResponse;
3735
use tower_lsp::lsp_types::CompletionParams;
@@ -250,6 +248,7 @@ impl Server {
250248
.await
251249
}
252250

251+
#[allow(unused)]
253252
async fn close_document(&mut self) -> Result<()> {
254253
self.notify(
255254
"textDocument/didClose",
@@ -827,8 +826,8 @@ async fn test_execute_statement() -> Result<()> {
827826

828827
let doc_content = r#"
829828
create table users (
830-
id serial primary key,
831-
name text,
829+
id serial primary key,
830+
name text,
832831
email text
833832
);
834833
"#;

Diff for: ‎test.sql

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ drop table unknown_users;
66
select
77
*
88
from
9-
unknown_users;
9+
unknown_users;
10+
11+
sel 1;

0 commit comments

Comments
 (0)
Please sign in to comment.