fix(#1145): clone logs/cmdline in priv_run match arms to avoid use-after-move
This commit is contained in:
parent
9e63c9c1d0
commit
c44fa14f7c
1 changed files with 2 additions and 2 deletions
|
|
@ -1311,14 +1311,14 @@ async fn priv_run(kind: &str, name: &str) -> Result<()> {
|
||||||
"create" => {
|
"create" => {
|
||||||
crate::priv_client::create_container_streaming(
|
crate::priv_client::create_container_streaming(
|
||||||
name,
|
name,
|
||||||
make_log_callback(logs, log_id, cmdline),
|
make_log_callback(logs.clone(), log_id, cmdline.clone()),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
"update" => {
|
"update" => {
|
||||||
crate::priv_client::update_container_streaming(
|
crate::priv_client::update_container_streaming(
|
||||||
name,
|
name,
|
||||||
make_log_callback(logs, log_id, cmdline),
|
make_log_callback(logs.clone(), log_id, cmdline.clone()),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue