fix(misc): other tiny clippy/fmt issues

This commit is contained in:
Kat Marchán 2024-12-20 02:10:33 -08:00
parent 37255b0bf6
commit ec73cdfa05
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ impl KdlEntry {
fmt.autoformat_keep = true;
}
}
/// Auto-formats this entry.
pub fn autoformat(&mut self) {
// TODO once MSRV allows:
@ -225,7 +225,7 @@ impl KdlEntry {
// take care of that.
KdlValue::Bool(_) | KdlValue::Null => format!("{}", self.value),
// These should be fine as-is?
KdlValue::Integer(_) | KdlValue::Float(_) => x.value_repr.clone(),
KdlValue::Integer(_) | KdlValue::Float(_) => x.value_repr,
}
});