testcontainers-rs icon indicating copy to clipboard operation
testcontainers-rs copied to clipboard

Remove superfluous phantom data from container

Open pbillaut opened this issue 3 years ago • 1 comments

The client_lifetime doesn't need to be tracked with PhantomData for docker_client to outlive the container itself and thus can be removed.

pbillaut avatar Sep 16 '22 13:09 pbillaut

Hmm, including this was actually on purpose. However, I've since pondered over a different API and wrote up https://github.com/testcontainers/testcontainers-rs/issues/386. That would make this obsolete and also remove this lifetime.

thomaseizinger avatar Sep 27 '22 08:09 thomaseizinger