Skip to content

Commit 62304df

Browse files
complexspacesdjc
authored andcommitted
Cleanup format strings for new Nightly clippy lint
1 parent 49ec56a commit 62304df

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

rustls-platform-verifier/src/verification/android.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ impl Verifier {
235235
}
236236
}
237237
Err(e) => Err(TlsError::General(format!(
238-
"failed to call native verifier: {:?}",
239-
e
238+
"failed to call native verifier: {e:?}",
240239
))),
241240
}
242241
}

rustls-platform-verifier/src/verification/apple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl Verifier {
234234
})
235235
// Fallback to an error containing the description and specific error code so that
236236
// the exact error cause can be looked up easily.
237-
.unwrap_or_else(|_| invalid_certificate(format!("{}: {}", trust_error, err_code)));
237+
.unwrap_or_else(|_| invalid_certificate(format!("{trust_error}: {err_code}")));
238238

239239
Err(err)
240240
}

0 commit comments

Comments
 (0)