From a82a275c0e7318f2d339c48e5f70751e007214a0 Mon Sep 17 00:00:00 2001 From: Dmitry Samoylov Date: Mon, 11 Apr 2022 17:28:55 +0700 Subject: [PATCH] Fix compilation error on Rust 2018 --- onvif/src/soap/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onvif/src/soap/client.rs b/onvif/src/soap/client.rs index bb2dbc1..d2a0204 100644 --- a/onvif/src/soap/client.rs +++ b/onvif/src/soap/client.rs @@ -244,7 +244,7 @@ impl Client { debug!(self, "Response (SOAP unwrapped, patched): {}", patched); Ok(patched) } - Err(e) => Err(Error::Protocol(format!("Patching failed: {e}"))), + Err(e) => Err(Error::Protocol(format!("Patching failed: {}", e))), } } else { Ok(response)