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

Feature request: Sort lints tables #73

Open
taladar opened this issue Apr 14, 2024 · 1 comment
Open

Feature request: Sort lints tables #73

taladar opened this issue Apr 14, 2024 · 1 comment

Comments

@taladar
Copy link

taladar commented Apr 14, 2024

Recently cargo added the ability to specify lints in Cargo.toml. Those seem like good candidates to add to the list of tables to sort.

@getong
Copy link

getong commented Nov 26, 2024

Cargo.toml

[lints]
rust.unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] }

error msg:

thread 'main' panicked at /Users/a/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/cargo-sort-1.0.9/src/sort.rs:113:46:
called `Result::unwrap()` on an `Err` value: TomlError { message: "TOML parse error at line 37, column 5\n   |\n37 | rust.unexpected_cfgs = { level = \"warn\", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] }\n   |     ^\nUnexpected `.`\nExpected `=`\n" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants