Skip to content

Commit 6bf003a

Browse files
committed
formatting logic of Cargo.toml
1 parent 89ca3f3 commit 6bf003a

File tree

4 files changed

+489
-36
lines changed

4 files changed

+489
-36
lines changed

Cargo.lock

Lines changed: 89 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ generic-simd = ["bytecount/generic-simd"]
3535
[dependencies]
3636
itertools = "0.9"
3737
toml = "0.5"
38+
toml_edit = "0.13"
3839
serde = { version = "1.0", features = ["derive"] }
3940
serde_json = "1.0"
4041
unicode-segmentation = "1.0.0"

src/formatting.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use crate::utils::{contains_skip, count_newlines};
2020
use crate::visitor::FmtVisitor;
2121
use crate::{modules, source_file, ErrorKind, FormatReport, Input, Session};
2222

23+
mod cargo_toml;
2324
mod generated;
2425
mod newline_style;
2526

0 commit comments

Comments
 (0)