Skip to content

Commit

Permalink
Bump version after fixing trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinR528 committed Jun 4, 2021
1 parent 0a39d2c commit 7609f27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
[package]
name = "cargo-sort"
version = "1.0.3"
version = "1.0.4"
authors = ["Devin R <devin.ragotzy@gmail.com>", "Andronik Ordian <write@reusable.software>"]
license = "MIT/Apache-2.0"
description = "Check if tables and items in a .toml file are lexically sorted"
Expand Down
2 changes: 1 addition & 1 deletion src/toml_edit/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl Display for Array {
write!(f, "{}[", self.decor.prefix)?;
for (i, v) in self.iter().enumerate() {
if i > 0 {
write!(f, "{}", ",")?;
write!(f, ",")?;
}

// The last values decor.suffix is \n so we can't just
Expand Down
2 changes: 1 addition & 1 deletion src/toml_edit/parser/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn array_from_vec(
got: format!("{:?}", val.get_type()),
expected: format!("{:?}", array.value_type()),
});
array.newlines |= val.decor().suffix.contains("\n");
array.newlines |= val.decor().suffix.contains('\n');
if array.push_formatted(val).is_err() {
return err;
}
Expand Down

0 comments on commit 7609f27

Please sign in to comment.