mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
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 <dinechin@redhat.com>
This commit is contained in:
parent
f832d8a651
commit
c8f406d4c4
@ -1545,7 +1545,7 @@ fn execute_hook(logger: &Logger, h: &Hook, st: &OCIState) -> Result<()> {
|
|||||||
info!(
|
info!(
|
||||||
logger,
|
logger,
|
||||||
"wait child error: {} {}",
|
"wait child error: {} {}",
|
||||||
e.description(),
|
e,
|
||||||
e.raw_os_error().unwrap()
|
e.raw_os_error().unwrap()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user