DevinR528 / cargo-sort

Check if tables and items in a .toml file are lexically sorted
203 stars 28 forks source link

unexpected panic #76

Open dev-ardi opened 1 month ago

dev-ardi commented 1 month ago
[profile.dev.package]
insta.opt-level = 3
similar.opt-level = 3
thread 'main' panicked at /home/ardi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-sort-1.0.9/src/sort.rs:113:46:
called `Result::unwrap()` on an `Err` value: TomlError { message: "TOML parse error at line 25, column 6\n   |\n25 | insta.opt-level = 3\n   |      ^\nUnexpected `.`\nExpected `=`\n" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
shivangp76 commented 1 month ago

See the workaround mentioned in https://github.com/DevinR528/cargo-sort/issues/67.