I tried using toml_edit to sort the repositories keys, but it resulted in to_string() returning ... nothing
let mut document = toml_edit::ser::to_document(config)?;
for (key, value) in document.iter() {
// just to demonstrate that the data *IS* there, it's just not getting serialized
tracing.info!("key: {key:?} value: {value:?}");
}
document.sort_values();
document.set_dotted(true);
document.to_string() // this returns an empty string
results in
sometimes and other times
I tried using
toml_edit
to sort therepositories
keys, but it resulted into_string()
returning ... nothing