From c8f406d4c4035331477e467ecc9c8e787c53b9aa Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Thu, 17 Sep 2020 18:45:06 +0200 Subject: [PATCH] rust-agent: Remove uses of deprecated functions This addresses the following: warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string() --> rustjail/src/container.rs:1598:31 | 1598 | ... e.description(), | ^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default Fixes: #750 Signed-off-by: Christophe de Dinechin --- src/agent/rustjail/src/container.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/rustjail/src/container.rs b/src/agent/rustjail/src/container.rs index 7f3b4d6b08..68a1c13b40 100644 --- a/src/agent/rustjail/src/container.rs +++ b/src/agent/rustjail/src/container.rs @@ -1545,7 +1545,7 @@ fn execute_hook(logger: &Logger, h: &Hook, st: &OCIState) -> Result<()> { info!( logger, "wait child error: {} {}", - e.description(), + e, e.raw_os_error().unwrap() );