Skip to content

Commit e95965c

Browse files
committed
fix clippy v1.91 warning
1 parent ac396c3 commit e95965c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/style.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl fmt::Debug for Style {
5555
}
5656
}
5757

58-
#[derive(Clone, Copy, Debug, PartialEq)]
58+
#[derive(Clone, Copy, Debug, PartialEq, Default)]
5959
pub enum DecorationStyle {
6060
Box(ansi_term::Style),
6161
Underline(ansi_term::Style),
@@ -64,15 +64,10 @@ pub enum DecorationStyle {
6464
BoxWithUnderline(ansi_term::Style),
6565
BoxWithOverline(ansi_term::Style),
6666
BoxWithUnderOverline(ansi_term::Style),
67+
#[default]
6768
NoDecoration,
6869
}
6970

70-
impl Default for DecorationStyle {
71-
fn default() -> Self {
72-
Self::NoDecoration
73-
}
74-
}
75-
7671
impl Style {
7772
pub fn new() -> Self {
7873
Self {

0 commit comments

Comments
 (0)