We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 784bb05 commit baf8fa6Copy full SHA for baf8fa6
src/formatting/cargo_toml.rs
@@ -296,15 +296,14 @@ impl VisitMut for FormatInlineTable {
296
let mut long_tables = vec![];
297
std::mem::swap(&mut self.long_tables, &mut long_tables);
298
299
- long_tables.into_iter().for_each(|(section, key, table)| {
300
- match table {
+ long_tables
+ .into_iter()
301
+ .for_each(|(section, key, table)| match table {
302
Item::Value(Value::InlineTable(table)) => {
- // let table = format!("[{}]\n{}",key,table).parse::<Table>().unwrap();
303
doc[§ion][&key] = Item::Table(table.into_table());
304
}
305
_ => unreachable!(),
306
- }
307
- });
+ });
308
309
310
fn visit_table_like_mut(&mut self, table: &mut dyn TableLike) {
0 commit comments