Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
Fixes new clippy warning

Signed-off-by: James Sturtevant <[email protected]>
  • Loading branch information
jsturtevant committed Apr 14, 2023
1 parent 9d966e3 commit 0ae6d4e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/runtime/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 {
Expand Down

0 comments on commit 0ae6d4e

Please sign in to comment.