Skip to content

Commit 61a9073

Browse files
committed
derive default rather than impl default
1 parent ff8b60c commit 61a9073

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cpp-linter/tests/paginated_changed_files.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,13 @@ use cpp_linter::{
1111
};
1212
use std::{env, io::Write, path::Path};
1313

14-
#[derive(PartialEq)]
14+
#[derive(PartialEq, Default)]
1515
enum EventType {
16+
#[default]
1617
Push,
1718
PullRequest,
1819
}
1920

20-
impl Default for EventType {
21-
fn default() -> Self {
22-
Self::Push
23-
}
24-
}
25-
2621
#[derive(Default)]
2722
struct TestParams {
2823
event_t: EventType,

0 commit comments

Comments
 (0)