Skip to content

Commit 0407e94

Browse files
committed
Default fo Config
1 parent 9bc5ec6 commit 0407e94

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/util.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ pub struct Config {
2323
pub ignore_groups: bool,
2424
}
2525

26+
impl Default for Config {
27+
fn default() -> Self {
28+
Self {
29+
target: Target::CortexM,
30+
nightly: false,
31+
generic_mod: false,
32+
make_mod: false,
33+
const_generic: false,
34+
ignore_groups: false,
35+
}
36+
}
37+
}
38+
2639
#[allow(clippy::upper_case_acronyms)]
2740
#[allow(non_camel_case_types)]
2841
#[derive(Clone, Copy, PartialEq)]

0 commit comments

Comments
 (0)