diff --git a/objdiff-core/src/diff/mod.rs b/objdiff-core/src/diff/mod.rs index 3388efc..fab8350 100644 --- a/objdiff-core/src/diff/mod.rs +++ b/objdiff-core/src/diff/mod.rs @@ -96,7 +96,7 @@ pub enum MipsInstrCategory { #[inline] const fn default_true() -> bool { true } -#[derive(Debug, Clone, Default, Eq, PartialEq, serde::Deserialize, serde::Serialize)] +#[derive(Debug, Clone, Eq, PartialEq, serde::Deserialize, serde::Serialize)] #[serde(default)] pub struct DiffObjConfig { pub relax_reloc_diffs: bool, @@ -109,6 +109,18 @@ pub struct DiffObjConfig { pub mips_instr_category: MipsInstrCategory, } +impl Default for DiffObjConfig { + fn default() -> Self { + Self { + relax_reloc_diffs: false, + space_between_args: true, + x86_formatter: Default::default(), + mips_abi: Default::default(), + mips_instr_category: Default::default(), + } + } +} + impl DiffObjConfig { pub fn separator(&self) -> &'static str { if self.space_between_args {