Skip to main content

max / makeover

Spell an inequality assertion as assert_ne clippy's manual_assert_eq, which the 1.97.1 toolchain enforces and which failed the release gate for 2.5.0. Pre-existing and unrelated to the release; the lint is newer than the assertion.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-10 14:48 UTC
Signed with PGP, not checked
Commit: b2581770b4d22aa2c790ceb043b385f592f1257f
Parent: bcfd5fa
1 file changed, +4 insertions, -1 deletion
M src/lib.rs +4 -1
@@ -1532,7 +1532,10 @@
1532 1532 let border = Rgb::from_hex("#b4b4b4").unwrap();
1533 1533
1534 1534 assert_eq!(quantize(page, &ANSI_16), quantize(border, &ANSI_16));
1535 - assert!(quantize_against(border, page, &ANSI_16) != quantize(page, &ANSI_16));
1535 + assert_ne!(
1536 + quantize_against(border, page, &ANSI_16),
1537 + quantize(page, &ANSI_16)
1538 + );
1536 1539 }
1537 1540
1538 1541 #[test]