Skip to content

Commit 2fa075c

Browse files
committed
fix: Add move keyword to async blocks
Async blocks must use 'move' to take ownership of borrowed variables when they outlive the function scope. Fixes E0373 errors in CI.
1 parent e47fc5e commit 2fa075c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/jail/linux/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ impl LinuxJail {
235235
.context("Failed to parse host IP")?;
236236

237237
// Configure networking inside namespace
238-
block_on(async {
238+
block_on(async move {
239239
// Bring up loopback
240240
netlink::set_link_up(&handle, "lo", true).await?;
241241

0 commit comments

Comments
 (0)