Skip to content

Commit

Permalink
Use toml_edit's to_string_in_original_order()
Browse files Browse the repository at this point in the history
  • Loading branch information
alsuren committed Jul 19, 2019
1 parent ad517e4 commit e25f246
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ serde = "1.0.91"
serde_derive = "1.0.91"
serde_json = "1.0.39"
termcolor = "1.0.4"
toml_edit = "0.1.3"
toml_edit = "0.1.4"
atty = "0.2.11"
structopt = "0.2.15"

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ impl Manifest {
}
}

let s = self.data.to_string();
let s = self.data.to_string_in_original_order();
let new_contents_bytes = s.as_bytes();

// We need to truncate the file, otherwise the new contents
Expand Down

0 comments on commit e25f246

Please sign in to comment.