mirror of
https://github.com/outbackdingo/hyprcosmic.git
synced 2026-08-25 07:10:09 +00:00
cd99893b3312bf5d9ab306ac7a6c5d9bfbf1f02d
Mostly mechanical -- writeln! for format strings ending in a newline, sort_by_key, slice::from_ref, &Path over &PathBuf, a stray &mut in a test. Two were worth more than the lint that found them. `parse_color` sliced `hex[i..i + 2]` after checking `hex.len()`. Both are byte counts, so a multi-byte character inside `rgb(...)` split a char boundary and panicked: `rgb(€abc)` is six bytes and aborted the compiler with "end byte index 2 is not a char boundary". A typo in a config file must produce a diagnostic, not a crash. Clippy did not see this -- it flagged the duplicated `rgb(`/`rgba(` arms as foldable into `?`, and folding them is what put the two length assumptions next to each other where the mismatch was visible. Now guarded by is_ascii, with a test that panics without the guard. `plan_verbatim` tripped too_many_arguments at 8. Three of them were the `&mut Vec<Action>`, `&mut Vec<Note>` and `&mut Vec<AssetError>` threaded through both plan helpers -- a Plan under construction, so `Draft` now names it and `finish()` owns the errors-are-fatal rule that was previously inline. 118 unit tests plus 4 integration tests pass; `cargo fmt --check` and `cargo clippy --all-targets` are both clean.
Description
Next generation Cosmic desktop environment
645 KiB
Languages
Rust
80.2%
Shell
12%
CSS
3.3%
Python
2.5%
Just
2%