From cef31055aaae29f4f6dce7c10eb6bf1ee7a59736 Mon Sep 17 00:00:00 2001 From: j-devel <38098238+j-devel@users.noreply.github.com> Date: Wed, 21 Aug 2024 13:23:00 +0700 Subject: [PATCH] Suppress warnings against use of `TopLevel`, bump version to 0.8.11 --- Cargo.toml | 2 +- src/sid.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9b517c1..9817277 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minerva-voucher" -version = "0.8.10" +version = "0.8.11" description = "Library to use BRSKI (https://datatracker.ietf.org/doc/html/rfc8995) Voucher in Rust" edition = "2018" authors = ["ANIMA Minerva toolkit"] diff --git a/src/sid.rs b/src/sid.rs index 291118d..94edcc6 100644 --- a/src/sid.rs +++ b/src/sid.rs @@ -43,6 +43,7 @@ pub const SID_VRQ_SERIAL_NUMBER: SidDisc = 2514; #[repr(u64)] #[derive(Clone, Eq, Debug)] pub enum Sid { + #[allow(dead_code)] VchTopLevel(TopLevel) = SID_VCH_TOP_LEVEL, VchAssertion(Yang) = SID_VCH_ASSERTION, VchCreatedOn(Yang) = SID_VCH_CREATED_ON, @@ -55,6 +56,7 @@ pub enum Sid { VchPinnedDomainPubk(Yang) = SID_VCH_PINNED_DOMAIN_PUBK, VchPinnedDomainPubkSha256(Yang) = SID_VCH_PINNED_DOMAIN_PUBK_SHA256, VchSerialNumber(Yang) = SID_VCH_SERIAL_NUMBER, + #[allow(dead_code)] VrqTopLevel(TopLevel) = SID_VRQ_TOP_LEVEL, VrqAssertion(Yang) = SID_VRQ_ASSERTION, VrqCreatedOn(Yang) = SID_VRQ_CREATED_ON,