mirror of https://github.com/kdl-org/kdl-rs.git
fix(misc): other tiny clippy/fmt issues
This commit is contained in:
parent
37255b0bf6
commit
ec73cdfa05
|
|
@ -168,7 +168,7 @@ impl KdlEntry {
|
||||||
fmt.autoformat_keep = true;
|
fmt.autoformat_keep = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Auto-formats this entry.
|
/// Auto-formats this entry.
|
||||||
pub fn autoformat(&mut self) {
|
pub fn autoformat(&mut self) {
|
||||||
// TODO once MSRV allows:
|
// TODO once MSRV allows:
|
||||||
|
|
@ -225,7 +225,7 @@ impl KdlEntry {
|
||||||
// take care of that.
|
// take care of that.
|
||||||
KdlValue::Bool(_) | KdlValue::Null => format!("{}", self.value),
|
KdlValue::Bool(_) | KdlValue::Null => format!("{}", self.value),
|
||||||
// These should be fine as-is?
|
// These should be fine as-is?
|
||||||
KdlValue::Integer(_) | KdlValue::Float(_) => x.value_repr.clone(),
|
KdlValue::Integer(_) | KdlValue::Float(_) => x.value_repr,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue