Skip to content

Commit 0b789b9

Browse files
weiznichdjc
authored andcommitted
Fix clippy warnings
1 parent bb1cbdb commit 0b789b9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ansi.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ use core::{
66
str::CharIndices,
77
};
88

9-
#[derive(Debug, Clone, Copy)]
9+
#[derive(Debug, Clone, Copy, Default)]
1010
enum State {
11+
#[default]
1112
Start,
1213
S1,
1314
S2,
@@ -23,12 +24,6 @@ enum State {
2324
Trap,
2425
}
2526

26-
impl Default for State {
27-
fn default() -> Self {
28-
Self::Start
29-
}
30-
}
31-
3227
impl State {
3328
fn is_final(&self) -> bool {
3429
#[allow(clippy::match_like_matches_macro)]

0 commit comments

Comments
 (0)