mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-04 11:10:02 +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<'_>,
|
this: &CratesToml<'_>,
|
||||||
writer: &mut dyn io::Write,
|
writer: &mut dyn io::Write,
|
||||||
) -> Result<(), CratesTomlParseError> {
|
) -> Result<(), CratesTomlParseError> {
|
||||||
let data = toml_edit::ser::to_vec(&this)?;
|
let data = toml_edit::ser::to_string_pretty(&this)?;
|
||||||
writer.write_all(&data)?;
|
writer.write_all(data.as_bytes())?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue