Skip to main content

max / makeover-webview

Scope the Nesting import to the tests that use it `facet.rs` took `Nesting` at lib level when `FacetValue::at` started carrying one, but the lib itself only reads `depth.level`; the constructor calls are in the test module and the doc example. `use super::*` made the import look used under `--all-targets`, so `cargo check` and a plain clippy run both passed and the publish preflight, which is `--all-targets -- -D warnings` against the lib on its own, did not.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session
https://claude.ai/code/session_01MptwXZ8k65v19rFmdGAyki
Author: Max Johnson <me@maxj.phd> · 2026-09-01 21:50 UTC
Signed with PGP, not checked
Commit: cf2d43fc176f3e7abfbf11f72e7ebb536ebde161
Parent: d4962b8
1 file changed, +2 insertions, -1 deletion
M src/facet.rs +2 -1
@@ -37,7 +37,7 @@
37 37 use crate::form::escape_into;
38 38 use crate::reset::Reset;
39 39 use crate::{Emit, class, push_class};
40 - use makeover_layout::{Depth, Facet, FacetValue, Nesting, Selecting, Standing};
40 + use makeover_layout::{Depth, Facet, FacetValue, Selecting, Standing};
41 41 use std::fmt::Write as _;
42 42
43 43 /// The classes this module can put in markup.
@@ -308,6 +308,7 @@
308 308 #[cfg(test)]
309 309 mod tests {
310 310 use super::*;
311 + use makeover_layout::Nesting;
311 312
312 313 fn tag_values() -> [FacetValue<'static>; 3] {
313 314 [