aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-05-06 08:20:00 +0000
committerBlaž Hrastnik2021-05-06 08:20:00 +0000
commitfd4fd12fa3dd565b56edb395bd625b0d2ec8ad46 (patch)
tree6c6ecf7777cb9eb7d9943122073a8a8e950abcbb /helix-lsp/src
parentba970054957238cb682ae3be022b675131beb6f8 (diff)
clippy lint
Diffstat (limited to 'helix-lsp/src')
-rw-r--r--helix-lsp/src/client.rs2
-rw-r--r--helix-lsp/src/transport.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index 8de4b95a..8a3aabd9 100644
--- a/helix-lsp/src/client.rs
+++ b/helix-lsp/src/client.rs
@@ -61,7 +61,7 @@ impl Client {
let (incoming, outgoing) = Transport::start(reader, writer, stderr);
- let client = Client {
+ let client = Self {
_process: process,
outgoing,
diff --git a/helix-lsp/src/transport.rs b/helix-lsp/src/transport.rs
index 4a5ae45a..dd42f7bb 100644
--- a/helix-lsp/src/transport.rs
+++ b/helix-lsp/src/transport.rs
@@ -75,7 +75,7 @@ impl Transport {
}
async fn recv(
- reader: &mut (impl AsyncBufRead + Unpin),
+ reader: &mut (impl AsyncBufRead + Unpin + Send),
headers: &mut HashMap<String, String>,
) -> core::result::Result<Message, std::io::Error> {
// read headers
@@ -117,7 +117,7 @@ impl Transport {
}
async fn err(
- err: &mut (impl AsyncBufRead + Unpin),
+ err: &mut (impl AsyncBufRead + Unpin + Send),
) -> core::result::Result<(), std::io::Error> {
let mut line = String::new();
err.read_line(&mut line).await?;