From 227dc06571af3a296fc6c7b075fcad77e19b0cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=BCke?= Date: Tue, 7 Nov 2023 01:03:57 +0100 Subject: [PATCH] ci: run tests as root --- wgbind/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wgbind/src/lib.rs b/wgbind/src/lib.rs index bd6425a..93a7098 100644 --- a/wgbind/src/lib.rs +++ b/wgbind/src/lib.rs @@ -154,7 +154,8 @@ mod tests { #[test] fn it_adds_a_device() { let ctx = setup(); - let device = ctx.interfaces.first().unwrap().clone(); + let device = ctx.interfaces.clone(); + let device = *(device.first().unwrap()); drop(ctx); let result = addDevice(device);