From f61cc15a54fb72a3ca1efff14e5b1694f110c237 Mon Sep 17 00:00:00 2001 From: berciuliviu Date: Mon, 22 Mar 2021 14:04:24 +0200 Subject: [PATCH] Fix cargo clippy error Fix cargo clippy reversed_empty_ranges error. Signed-off-by: berciuliviu --- src/primitives.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/primitives.rs b/src/primitives.rs index 7583c9e..470c8af 100644 --- a/src/primitives.rs +++ b/src/primitives.rs @@ -166,11 +166,12 @@ macro_rules! impl_versionize_arrays { } } +#[allow(clippy::reversed_empty_ranges)] impl_versionize_arrays! { - 0 1 2 3 4 5 6 7 8 9 - 10 11 12 13 14 15 16 17 18 19 - 20 21 22 23 24 25 26 27 28 29 - 30 31 32 + 1 2 3 4 5 6 7 8 9 10 + 11 12 13 14 15 16 17 18 19 20 + 21 22 23 24 25 26 27 28 29 30 + 31 32 } impl Versionize for Box