Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
fix 'derivable_impl' clippy warning
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Livesey <jlivesey@gmail.com>
  • Loading branch information
suchapalaver committed Sep 17, 2023
1 parent 156d8c3 commit 7e44a29
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions validator/src/journal/block_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,16 @@ use std::fmt;

use cpython::{self, ObjectProtocol, PyClone, PyObject};

#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Default, Clone, PartialEq, Eq)]
pub enum BlockStatus {
#[default]
Unknown = 0,
Invalid = 1,
Valid = 2,
Missing = 3,
InValidation = 5,
}

impl Default for BlockStatus {
fn default() -> Self {
BlockStatus::Unknown
}
}

#[derive(Debug)]
pub struct BlockWrapper {
pub(super) py_block_wrapper: PyObject,
Expand Down

0 comments on commit 7e44a29

Please sign in to comment.