mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 05:28:42 +00:00
feat: pretty print .crates.toml manifest to match cargo behaviour (#984)
Fixed #970
This commit is contained in:
parent
8ccb6c887a
commit
75f48cce3e
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@ impl CratesToml<'_> {
|
|||
this: &CratesToml<'_>,
|
||||
writer: &mut dyn io::Write,
|
||||
) -> Result<(), CratesTomlParseError> {
|
||||
let data = toml_edit::ser::to_vec(&this)?;
|
||||
writer.write_all(&data)?;
|
||||
let data = toml_edit::ser::to_string_pretty(&this)?;
|
||||
writer.write_all(data.as_bytes())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue