summaryrefslogtreecommitdiff
path: root/openssl/src/ssl/mod.rs
diff options
context:
space:
mode:
authorJonas Platte <jplatte+git@posteo.de>2020-12-31 19:45:38 +0100
committerJonas Platte <jplatte+git@posteo.de>2021-01-01 04:11:48 +0100
commitc13d0a21077127fbd4e2a84a2c8ec9830f0f3147 (patch)
tree995fcdd2e98ec890bc23d0c2f785928a98a62ab4 /openssl/src/ssl/mod.rs
parent0dc50fbfd45cbb84418a83dd4522f02b0b538f19 (diff)
downloadrust-openssl-c13d0a21077127fbd4e2a84a2c8ec9830f0f3147.zip
Use edition 2018 idioms and warn when they are not followed
This was mostly automated using `cargo fix --edition-idioms`.
Diffstat (limited to 'openssl/src/ssl/mod.rs')
-rw-r--r--openssl/src/ssl/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 93a3bf0a..2328106c 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -1843,7 +1843,7 @@ impl ToOwned for SslContextRef {
// TODO: add useful info here
impl fmt::Debug for SslContext {
- fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(fmt, "SslContext")
}
}
@@ -2346,7 +2346,7 @@ foreign_type_and_impl_send_sync! {
}
impl fmt::Debug for Ssl {
- fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Debug::fmt(&**self, fmt)
}
}
@@ -2441,7 +2441,7 @@ impl Ssl {
}
impl fmt::Debug for SslRef {
- fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt.debug_struct("Ssl")
.field("state", &self.state_string_long())
.field("verify_result", &self.verify_result())
@@ -3469,7 +3469,7 @@ impl<S> fmt::Debug for SslStream<S>
where
S: fmt::Debug,
{
- fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt.debug_struct("SslStream")
.field("stream", &self.get_ref())
.field("ssl", &self.ssl())