From a747e6c3579a33e4d160ddb2e04935702e0c9ab9 Mon Sep 17 00:00:00 2001 From: Asger Hautop Drewsen Date: Thu, 25 Jan 2024 16:05:16 +0100 Subject: [PATCH] Don't use too new Rust features --- amqprs/src/api/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amqprs/src/api/connection.rs b/amqprs/src/api/connection.rs index c028d41..2505535 100644 --- a/amqprs/src/api/connection.rs +++ b/amqprs/src/api/connection.rs @@ -523,7 +523,7 @@ impl TryFrom<&str> for OpenConnectionArguments { if scheme == AMQPS_SCHEME { args.tls_adaptor( TlsAdaptor::without_client_auth(None, host.to_string()) - .map_err(|e| Error::UriError(format!("Error creating TLS adaptor: {e}")))?, + .map_err(|e| Error::UriError(format!("Error creating TLS adaptor: {}", e)))?, ); }