chore/fix-some-stuff #2
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/fix-some-stuff"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Automated review — 3 findings, most-severe first. This diff currently fails CI's Format check step, so that one blocks merge until fixed.
@ -12,3 +12,3 @@edition = "2021"version = "0.1.0"license = "MIT"license = "AGPL-3"AGPL-3isn't a valid SPDX license identifier — the valid forms areAGPL-3.0-only/AGPL-3.0-or-later(or the deprecatedAGPL-3.0). Tools that validate SPDX metadata (cargo-deny, crates.io) will reject this. Also this is a real license change (MIT → AGPL) bundled into a "chore" commit with no LICENSE file added to match — probably worth calling out explicitly or splitting into its own commit/PR.@ -96,2 +95,2 @@// credit partial engagement rather than 0 or 1._ => 0.5,let mut score = match opened {This rewrote
if !opened {0.0} else {...}asmatch opened { true => {...}, false => 0.0 }— a needless match-on-bool with no behavior change and extra nesting for no gain. Not currently caught by clippy in this workspace (verifiedcargo clippy -p feedsignal-core --all-targets -- -D warningsis clean), so it'll linger. Consider reverting to a plainif/else.@ -98,1 +102,4 @@_ => 0.5,}}false => 0.0cargo fmt --checkfails on this branch: thefalse => 0.0arm is missing a trailing comma, plus two more spots this diff introduces further down (the multi-lineassert_eq!calls inengagement_score_starred_adds_bonus/engagement_score_starred_bonus_caps_at_one, which rustfmt collapses to one line). Since CI'sFormat checkstep runs before clippy/tests, this diff fails CI as-is — runcargo fmtbefore merging.