Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reordering of sections doesn't add a new line between them #35

Open
palfrey opened this issue Jan 2, 2022 · 3 comments
Open

Reordering of sections doesn't add a new line between them #35

palfrey opened this issue Jan 2, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@palfrey
Copy link

palfrey commented Jan 2, 2022

With Cargo.toml as

[dependencies]
amq-protocol = "6"
anyhow = "1"
bytes = "1"
diesel = { version = "1.4", features = ["postgres"] }
dotenv = "0.15.0"
lazy_static = "1"
regex = "1"
serde = "1"
tokio = {version="1", features=["net", "io-util", "rt", "macros", "rt-multi-thread"] }

[dev-dependencies]
celery = "0.4.0-rcn.11"
simplelog = "*"

[package]
edition = "2021"
name = "cavalcade"
version = "0.1.0"

and tomlfmt.toml as

table_order = ["package", "dependencies", "dev-dependencies"]

it gets reordered to


[package]
edition = "2021"
name = "cavalcade"
version = "0.1.0"
[dependencies]
amq-protocol = "6"
anyhow = "1"
bytes = "1"
diesel = { version = "1.4", features = ["postgres"] }
dotenv = "0.15.0"
lazy_static = "1"
regex = "1"
serde = "1"
tokio = { version = "1", features = ["net", "io-util", "rt", "macros", "rt-multi-thread"] }

[dev-dependencies]
celery = "0.4.0-rcn.11"
simplelog = "*"

Note the newline at the top of the file, and the lack of newline before dependencies

@palfrey
Copy link
Author

palfrey commented Jan 2, 2022

Fixing this manually is easy and the tool is happy after that, so thanks for making it though!

@DevinR528
Copy link
Owner

Thanks for catching this, it may be easy to fix but it should work 😄

I'll look into it unless you are interested?

@DevinR528 DevinR528 added the bug Something isn't working label Jan 2, 2022
@palfrey
Copy link
Author

palfrey commented Jan 2, 2022

I'm unlikely to pick this up any time soon as I've got too many other things on my plate currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants