mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 06:59:22 +01:00
f070c7ff6c
## Summary `Ord for SettingsFile` had no `(Global, Global)` arm, so `Global.cmp(&Global)` returned `Less`. Each global settings parse added a duplicate `file_errors` entry, and lookups of `Global` returned `None`. Nothing reads `Global` errors, so there is no user-visible change. ## Testing - `test_file_ord` now includes `Global` and checks `cmp` on every pair. It fails without the fix. - `cargo test -p settings` and `./script/clippy -p settings` pass. ## Self-review - [x] I've reviewed my diff for quality, security, reliability, and performance. - [x] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [x] Tests cover the new or changed behavior. Release Notes: - N/A