Skip to main content

max / makeover-layout

Stop saying a control's state can be focus Left behind by 0.19.0, which removed the variant. `Act::state`'s own doc still opened with focus as one of the things it holds, which is the one place a reader looks to find out what the member means.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-13 17:00 UTC
Signed with PGP, not checked
Commit: c956d0bf2a48495fd33054ebbbbc73df5fb4fd29
Parent: 5b168a2
2 files changed, +7 insertions, -5 deletions
M Cargo.toml +1 -1
@@ -1,6 +1,6 @@
1 1 [package]
2 2 name = "makeover-layout"
3 - version = "0.19.0"
3 + version = "0.19.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 +6 -4
@@ -1200,11 +1200,13 @@
1200 1200 pub key: Option<&'a str>,
1201 1201 /// What pressing it means. [`Tone::Danger`] is the destructive one.
1202 1202 pub tone: Tone,
1203 - /// Focus, disabled, or neither.
1203 + /// Disabled, or nothing said.
1204 1204 ///
1205 - /// [`State::Disabled`] is the one that changes what a renderer may do:
1206 - /// see [`State::suppresses_interaction`], which is what says a disabled
1207 - /// control is drawn and not reachable.
1205 + /// [`State::Disabled`] is what changes what a renderer may do: see
1206 + /// [`State::suppresses_interaction`], which is what says a disabled control
1207 + /// is drawn and not reachable. It has been the only member since 0.19.0,
1208 + /// and a control's focus is not sayable here at all — see the crate header,
1209 + /// "Reach, focus and the focus ring".
1208 1210 pub state: Option<State>,
1209 1211 }
1210 1212