Skip to content

Commit

Permalink
Default "Space between args" -> true
Browse files Browse the repository at this point in the history
  • Loading branch information
encounter committed May 22, 2024
1 parent 9e57a66 commit f30b3cf
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion objdiff-core/src/diff/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down

0 comments on commit f30b3cf

Please sign in to comment.