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 <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2022-05-20 09:39:06 +02:00 committed by Rob Bradford
parent f0aa70c78b
commit 49db713124
2 changed files with 0 additions and 2 deletions

View File

@ -34,7 +34,6 @@ pub enum Thread {
/// [`SeccompCondition`]: struct.SeccompCondition.html /// [`SeccompCondition`]: struct.SeccompCondition.html
/// [`SeccompRule`]: struct.SeccompRule.html /// [`SeccompRule`]: struct.SeccompRule.html
macro_rules! and { macro_rules! and {
($($x:expr,)*) => (SeccompRule::new(vec![$($x),*]).unwrap());
($($x:expr),*) => (SeccompRule::new(vec![$($x),*]).unwrap()) ($($x:expr),*) => (SeccompRule::new(vec![$($x),*]).unwrap())
} }

View File

@ -24,7 +24,6 @@ pub enum Thread {
/// [`SeccompCondition`]: struct.SeccompCondition.html /// [`SeccompCondition`]: struct.SeccompCondition.html
/// [`SeccompRule`]: struct.SeccompRule.html /// [`SeccompRule`]: struct.SeccompRule.html
macro_rules! and { macro_rules! and {
($($x:expr,)*) => (SeccompRule::new(vec![$($x),*]).unwrap());
($($x:expr),*) => (SeccompRule::new(vec![$($x),*]).unwrap()) ($($x:expr),*) => (SeccompRule::new(vec![$($x),*]).unwrap())
} }