summaryrefslogtreecommitdiff
path: root/tests/util/server/src/lsp.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-10-24 18:06:17 -0400
committerGitHub <noreply@github.com>2024-10-24 22:06:17 +0000
commite16230624747eccea7636b20b952df5899719336 (patch)
tree9a8ed7a52ca7042877101425e67a086f562f29ad /tests/util/server/src/lsp.rs
parent8dd6177c624649d75ffcacca77e7c4f48cea07a2 (diff)
chore: remove print debugging from test server (#26529)
Accidentally added in https://github.com/denoland/deno/pull/26473/files
Diffstat (limited to 'tests/util/server/src/lsp.rs')
-rw-r--r--tests/util/server/src/lsp.rs18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/util/server/src/lsp.rs b/tests/util/server/src/lsp.rs
index 4e75cfadb..d34deb216 100644
--- a/tests/util/server/src/lsp.rs
+++ b/tests/util/server/src/lsp.rs
@@ -157,6 +157,7 @@ impl LspStdoutReader {
self.pending_messages.0.lock().len()
}
+ #[allow(clippy::print_stderr)]
pub fn output_pending_messages(&self) {
let messages = self.pending_messages.0.lock();
eprintln!("{:?}", messages);
@@ -573,6 +574,7 @@ impl LspClientBuilder {
for line in stderr.lines() {
match line {
Ok(line) => {
+ #[allow(clippy::print_stderr)]
if print_stderr {
eprintln!("{}", line);
}
@@ -587,7 +589,10 @@ impl LspClientBuilder {
continue;
}
Err(err) => {
- eprintln!("failed to parse perf record: {:#}", err);
+ #[allow(clippy::print_stderr)]
+ {
+ eprintln!("failed to parse perf record: {:#}", err);
+ }
}
}
}
@@ -782,11 +787,14 @@ impl LspClient {
std::thread::sleep(Duration::from_millis(20));
}
- eprintln!("==== STDERR OUTPUT ====");
- for line in found_lines {
- eprintln!("{}", line)
+ #[allow(clippy::print_stderr)]
+ {
+ eprintln!("==== STDERR OUTPUT ====");
+ for line in found_lines {
+ eprintln!("{}", line)
+ }
+ eprintln!("== END STDERR OUTPUT ==");
}
- eprintln!("== END STDERR OUTPUT ==");
panic!("Timed out waiting on condition.")
}