Skip to main content

max / makeover-layout

0.26.1: the four-field guard destructures instead of binding clippy's needless_late_init family rejects a _-prefixed binding with no side effect, and Bento's preflight runs -D warnings, so 0.26.0 never published. Destructuring names every field and stops compiling when a fifth arrives, which is what the guard was for, without binding anything.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-15 16:52 UTC
Signed with PGP, not checked
Commit: 0d634215f7419dc143b81eab1d6cdd2d9821a950
Parent: 7e9806b
2 files changed, +10 insertions, -7 deletions
M Cargo.toml +1 -1
@@ -1,6 +1,6 @@
1 1 [package]
2 2 name = "makeover-layout"
3 - version = "0.26.0"
3 + version = "0.26.1"
4 4 edition = "2024"
5 5 # One copy of this vocabulary per dependency graph, enforced by cargo rather
6 6 # than by remembering. Two versions of a description layer in one build means
M src/lib.rs +9 -6
@@ -3674,12 +3674,15 @@
3674 3674 // themselves, and the absence of it is what let a month strip render
3675 3675 // under a wall clock. A fifth field still has to argue, and "the
3676 3676 // renderer would find it handy" is still not the argument.
3677 - let _exhaustive = Track {
3678 - span: day.span,
3679 - slot: day.slot,
3680 - tick: day.tick,
3681 - unit: day.unit,
3682 - };
3677 + // Destructured rather than rebuilt: this is the form that names every
3678 + // field and stops compiling when a fifth arrives, without binding
3679 + // anything a lint has to forgive.
3680 + let Track {
3681 + span: _,
3682 + slot: _,
3683 + tick: _,
3684 + unit: _,
3685 + } = day;
3683 3686 }
3684 3687
3685 3688 #[test]