From 416a63eaeed1674ad38b94fa2bceea21050050cf Mon Sep 17 00:00:00 2001 From: ryutamago Date: Thu, 19 Sep 2024 16:59:40 +0100 Subject: [PATCH] feat(jstzd): implement async-drop for container --- crates/jstzd/src/docker/container.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/crates/jstzd/src/docker/container.rs b/crates/jstzd/src/docker/container.rs index 7ba8239c5..6995205f9 100644 --- a/crates/jstzd/src/docker/container.rs +++ b/crates/jstzd/src/docker/container.rs @@ -6,6 +6,7 @@ use bollard::Docker; use log::error; use std::sync::Arc; +#[derive(Default)] pub struct Container { pub id: String, client: Option>, @@ -13,17 +14,6 @@ pub struct Container { _private: (), } -impl Default for Container { - fn default() -> Self { - Self { - id: String::new(), - client: None, - dropped: false, - _private: (), - } - } -} - impl Container { /// Creates a new container with running `id` pub(super) fn new(client: Arc, id: String) -> Self {