Skip to content

Commit 5d83866

Browse files
authored
Fix clippy uninlined format args (#528)
1 parent de91392 commit 5d83866

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tarpc/examples/tls_over_tcp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub fn load_private_key(key: &str) -> rustls::pki_types::PrivateKeyDer {
6969
_ => continue,
7070
}
7171
}
72-
panic!("no keys found in {:?} (encrypted keys not supported)", key);
72+
panic!("no keys found in {key:?} (encrypted keys not supported)");
7373
}
7474

7575
async fn spawn(fut: impl Future<Output = ()> + Send + 'static) {
@@ -96,7 +96,7 @@ async fn main() -> anyhow::Result<()> {
9696
client_auth_roots.into(),
9797
)
9898
.build()
99-
.map_err(|err| io::Error::new(io::ErrorKind::Other, format!("{}", err)))
99+
.map_err(|err| io::Error::new(io::ErrorKind::Other, format!("{err}")))
100100
.unwrap();
101101
// ------------- server side client_auth cert loading end
102102

tarpc/src/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ mod tests {
12981298

12991299
let request = match requests.as_mut().poll_next(&mut noop_context()) {
13001300
Poll::Ready(Some(Ok(request))) => request,
1301-
result => panic!("Unexpected result: {:?}", result),
1301+
result => panic!("Unexpected result: {result:?}"),
13021302
};
13031303
drop(request);
13041304

@@ -1318,7 +1318,7 @@ mod tests {
13181318

13191319
let request = match requests.as_mut().poll_next(&mut noop_context()) {
13201320
Poll::Ready(Some(Ok(request))) => request,
1321-
result => panic!("Unexpected result: {:?}", result),
1321+
result => panic!("Unexpected result: {result:?}"),
13221322
};
13231323
request.execute(serve(|_, _| async { Ok(()) })).await;
13241324
assert!(requests

0 commit comments

Comments
 (0)