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

Commit 7e44a29

Browse files
committed
fix 'derivable_impl' clippy warning
Signed-off-by: Joseph Livesey <[email protected]>
1 parent 156d8c3 commit 7e44a29

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

validator/src/journal/block_wrapper.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,16 @@ use std::fmt;
2121

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

24-
#[derive(Debug, Clone, PartialEq, Eq)]
24+
#[derive(Debug, Default, Clone, PartialEq, Eq)]
2525
pub enum BlockStatus {
26+
#[default]
2627
Unknown = 0,
2728
Invalid = 1,
2829
Valid = 2,
2930
Missing = 3,
3031
InValidation = 5,
3132
}
3233

33-
impl Default for BlockStatus {
34-
fn default() -> Self {
35-
BlockStatus::Unknown
36-
}
37-
}
38-
3934
#[derive(Debug)]
4035
pub struct BlockWrapper {
4136
pub(super) py_block_wrapper: PyObject,

0 commit comments

Comments
 (0)