Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit c06f032

Browse files
committed
client, tests: fix some clippy warnings
1 parent 430eeb1 commit c06f032

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

dxr_client/src/reqwest_support.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,7 @@ impl Client {
239239
// return value does not match either expected format
240240
else {
241241
return Err(ClientError::rpc(DxrError::invalid_data(format!(
242-
"Invalid return value: '{:?}'",
243-
result
242+
"Invalid return value: '{result:?}'"
244243
))));
245244
}
246245
}
@@ -286,7 +285,7 @@ fn response_to_result(contents: &str) -> Result<MethodResponse, ClientError> {
286285

287286
// log errors if the contents could not be deserialized as either response or fault
288287
log::debug!("Failed to deserialize response as either value or fault.");
289-
log::debug!("Response failed with: {}; Fault failed with: {}", error1, error2);
288+
log::debug!("Response failed with: {error1}; Fault failed with: {error2}");
290289

291290
// malformed response: return DxrError::InvalidData
292291
Err(DxrError::invalid_data(contents.to_owned()).into())

dxr_tests/examples/koji.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ async fn main() -> Result<(), String> {
4646
.map_err(|error| error.to_string())?;
4747

4848
// print query result
49-
println!("{:#?}", result);
49+
println!("{result:#?}");
5050

5151
let result: Value = client
5252
.call("getPackage", ("syncthing", true))
5353
.await
5454
.map_err(|error| error.to_string())?;
5555

5656
// print query result
57-
println!("{:#?}", result);
57+
println!("{result:#?}");
5858

5959
Ok(())
6060
}

0 commit comments

Comments
 (0)