From f00b442e0ef0bcf409b4698c1bc4f48a0887eba6 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Thu, 9 Mar 2023 09:49:42 +0200 Subject: Note on research --- tests/server_shell.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/server_shell.rs b/tests/server_shell.rs index ae77a6a..e727044 100644 --- a/tests/server_shell.rs +++ b/tests/server_shell.rs @@ -55,6 +55,7 @@ fn build_docker_image() -> Result<(), DockerBuildError> { }; // Based on this example: https://doc.rust-lang.org/std/sync/struct.Once.html#examples-1 + // Could be replaced by https://doc.rust-lang.org/std/cell/struct.LazyCell.html once that is in stable rust unsafe { BUILD_DOCKER.call_once(|| { BUILD_DOCKER_RESULT = build_docker(); -- cgit v1.2.3