Skip to content

Commit a1ccd1a

Browse files
committed
Fix clippy lints
1 parent bbaf98a commit a1ccd1a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

rust/acp.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl ClientConnection {
105105
let result = result.await?;
106106
R::response_from_any(result).ok_or_else(|| Error {
107107
code: -32700,
108-
message: format!("Could not parse"),
108+
message: "Could not parse".to_string(),
109109
})
110110
}
111111
}
@@ -252,7 +252,7 @@ where
252252
incoming_tx.unbounded_send((message.id, params)).ok();
253253
}
254254
Err(error) => {
255-
log::error!("failed to parse incoming {method} message params: {}. Raw: {}", error, incoming_line);
255+
log::error!("failed to parse incoming {method} message params: {error}. Raw: {incoming_line}");
256256
}
257257
}
258258
} else if let Some(error) = message.error {
@@ -267,7 +267,7 @@ where
267267
tx.send(Ok(result)).ok();
268268
}
269269
Err(error) => {
270-
log::error!("failed to parse {method} message result: {}. Raw: {}", error, result);
270+
log::error!("failed to parse {method} message result: {error}. Raw: {result}");
271271
}
272272
}
273273
} else {
@@ -276,7 +276,7 @@ where
276276
}
277277
}
278278
Err(error) => {
279-
log::error!("failed to parse incoming message: {}. Raw: {}", error, incoming_line);
279+
log::error!("failed to parse incoming message: {error}. Raw: {incoming_line}");
280280
}
281281
}
282282
incoming_line.clear();

rust/acp_tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use super::*;
22
use anyhow::Result;
33
use async_trait::async_trait;
4-
use tokio;
54
use tokio::task::LocalSet;
65
use tokio::time::{Duration, timeout};
76

0 commit comments

Comments
 (0)