From 0ae6d4edefb1b3771692fed5c693d6a35c0edd4d Mon Sep 17 00:00:00 2001 From: James Sturtevant Date: Thu, 13 Apr 2023 08:24:14 -0700 Subject: [PATCH] Fix clippy warning Fixes new clippy warning Signed-off-by: James Sturtevant --- src/runtime/linux.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/runtime/linux.rs b/src/runtime/linux.rs index 06a1619576..41fe4a67b0 100644 --- a/src/runtime/linux.rs +++ b/src/runtime/linux.rs @@ -167,8 +167,10 @@ pub struct LinuxIdMapping { #[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "lowercase")] /// Device types +#[derive(Default)] pub enum LinuxDeviceType { /// All + #[default] A, /// block (buffered) @@ -184,12 +186,6 @@ pub enum LinuxDeviceType { P, } -impl Default for LinuxDeviceType { - fn default() -> LinuxDeviceType { - LinuxDeviceType::A - } -} - impl LinuxDeviceType { /// Retrieve a string reference for the device type. pub fn as_str(&self) -> &str {