From 49db71312401172ada6449abf9f3efa8a587e250 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Fri, 20 May 2022 09:39:06 +0200 Subject: [PATCH] virtio-devices, vmm: Remove unused macro rules Latest cargo beta version raises warnings about unused macro rules. Simply remove them to fix the beta build. Signed-off-by: Sebastien Boeuf --- virtio-devices/src/seccomp_filters.rs | 1 - vmm/src/seccomp_filters.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/virtio-devices/src/seccomp_filters.rs b/virtio-devices/src/seccomp_filters.rs index 482b37ece..6044231bf 100644 --- a/virtio-devices/src/seccomp_filters.rs +++ b/virtio-devices/src/seccomp_filters.rs @@ -34,7 +34,6 @@ pub enum Thread { /// [`SeccompCondition`]: struct.SeccompCondition.html /// [`SeccompRule`]: struct.SeccompRule.html macro_rules! and { - ($($x:expr,)*) => (SeccompRule::new(vec![$($x),*]).unwrap()); ($($x:expr),*) => (SeccompRule::new(vec![$($x),*]).unwrap()) } diff --git a/vmm/src/seccomp_filters.rs b/vmm/src/seccomp_filters.rs index a3cc35ec1..10c290035 100644 --- a/vmm/src/seccomp_filters.rs +++ b/vmm/src/seccomp_filters.rs @@ -24,7 +24,6 @@ pub enum Thread { /// [`SeccompCondition`]: struct.SeccompCondition.html /// [`SeccompRule`]: struct.SeccompRule.html macro_rules! and { - ($($x:expr,)*) => (SeccompRule::new(vec![$($x),*]).unwrap()); ($($x:expr),*) => (SeccompRule::new(vec![$($x),*]).unwrap()) }