From 57162428cbe5fd9a6d1a953eab265193c561bbef Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Tue, 11 Oct 2022 15:39:56 +0530 Subject: [PATCH] Remove unused types Started getting warnings for unused definitions as soon as the types are made private to the crate. Remove them now. Signed-off-by: Viresh Kumar --- i2c/src/main.rs | 2 -- rng/src/vhu_rng.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/i2c/src/main.rs b/i2c/src/main.rs index 1bc391e..9c42395 100644 --- a/i2c/src/main.rs +++ b/i2c/src/main.rs @@ -29,8 +29,6 @@ type Result = std::result::Result; pub(crate) enum Error { #[error("Invalid socket count: {0}")] SocketCountInvalid(usize), - #[error("Invalid device list")] - DeviceListInvalid, #[error("Duplicate adapter detected: {0}")] AdapterDuplicate(u32), #[error("Invalid client address: {0}")] diff --git a/rng/src/vhu_rng.rs b/rng/src/vhu_rng.rs index 31606c4..7facbb6 100644 --- a/rng/src/vhu_rng.rs +++ b/rng/src/vhu_rng.rs @@ -55,8 +55,6 @@ pub(crate) enum VuRngError { UnexpectedRngSourceError, #[error("Previous Time value is later than current time")] UnexpectedTimerValue, - #[error("Unexpected VirtQueue error")] - UnexpectedVirtQueueError, } impl convert::From for io::Error {