Skip to content

Commit f30b3cf

Browse files
committed
Default "Space between args" -> true
1 parent 9e57a66 commit f30b3cf

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

objdiff-core/src/diff/mod.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub enum MipsInstrCategory {
9696
#[inline]
9797
const fn default_true() -> bool { true }
9898

99-
#[derive(Debug, Clone, Default, Eq, PartialEq, serde::Deserialize, serde::Serialize)]
99+
#[derive(Debug, Clone, Eq, PartialEq, serde::Deserialize, serde::Serialize)]
100100
#[serde(default)]
101101
pub struct DiffObjConfig {
102102
pub relax_reloc_diffs: bool,
@@ -109,6 +109,18 @@ pub struct DiffObjConfig {
109109
pub mips_instr_category: MipsInstrCategory,
110110
}
111111

112+
impl Default for DiffObjConfig {
113+
fn default() -> Self {
114+
Self {
115+
relax_reloc_diffs: false,
116+
space_between_args: true,
117+
x86_formatter: Default::default(),
118+
mips_abi: Default::default(),
119+
mips_instr_category: Default::default(),
120+
}
121+
}
122+
}
123+
112124
impl DiffObjConfig {
113125
pub fn separator(&self) -> &'static str {
114126
if self.space_between_args {

0 commit comments

Comments
 (0)