Skip to content

Commit af634a0

Browse files
committed
manifest: impl Default via derivation instead
1 parent 21b972c commit af634a0

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

cargo-rtic-scope/src/manifest.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use cortex_m::peripheral::itm::LocalTimestampOptions;
88
use serde::{Deserialize, Serialize};
99
use thiserror::Error;
1010

11-
#[derive(Deserialize, Debug)]
11+
#[derive(Deserialize, Debug, Default)]
1212
struct ManifestPropertiesIntermediate {
1313
pub pac_name: Option<String>,
1414
pub pac_features: Option<Vec<String>>,
@@ -22,23 +22,6 @@ struct ManifestPropertiesIntermediate {
2222
pub expect_malformed: Option<bool>,
2323
}
2424

25-
impl Default for ManifestPropertiesIntermediate {
26-
fn default() -> Self {
27-
Self {
28-
pac_name: None,
29-
pac_features: None,
30-
pac_version: None,
31-
interrupt_path: None,
32-
tpiu_freq: None,
33-
tpiu_baud: None,
34-
lts_prescaler: None,
35-
dwt_enter_id: None,
36-
dwt_exit_id: None,
37-
expect_malformed: None,
38-
}
39-
}
40-
}
41-
4225
impl ManifestPropertiesIntermediate {
4326
pub fn complete_with(&mut self, other: Self) {
4427
macro_rules! complete {

0 commit comments

Comments
 (0)