Open
Description
I am trying to push a specific table to the top in the array, but unable to do so.
Example code:
fn push_to_top(array: &mut ArrayOfTables, index: usize) {
let table = array.remove(index); // <--- This does not return the removed table.
array.push(table);
}
toml_edit::Array
already seems to return the removed value, so this would be nice for API consistency.