Skip to content

Commit 113a6c2

Browse files
committed
Make Clippy happy
1 parent f2438c0 commit 113a6c2

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

backends/src/ts/inner/mod.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,14 @@ static INVALID: Expr = Expr::Invalid(Invalid {
4646
},
4747
});
4848

49-
#[derive(Debug, Eq, PartialEq)]
49+
#[derive(Debug, Default, Eq, PartialEq)]
5050
enum ItMessageState {
51+
#[default]
5152
NotFound,
5253
Found,
5354
WarningEmitted,
5455
}
5556

56-
impl Default for ItMessageState {
57-
fn default() -> Self {
58-
Self::NotFound
59-
}
60-
}
61-
6257
#[allow(clippy::type_complexity)]
6358
pub struct Inner {
6459
subdir: PathBuf,

0 commit comments

Comments
 (0)