From 4627402e4019b7b37b73fe7c4c47c3e647517d01 Mon Sep 17 00:00:00 2001 From: brett19 Date: Sun, 1 Nov 2026 06:41:27 -0700 Subject: [PATCH] Clippy without SMLib: the planar-sheet edge reader is built only with it Its one caller is in the smlib-only sheets module, so without the feature it was dead code and clippy -D warnings refused the kernel. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01SdcgEu4Lr3moCCisdZShKz --- crates/kernel/src/prism_curve.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/kernel/src/prism_curve.rs b/crates/kernel/src/prism_curve.rs index 4b4e47aa0..121112ae1 100644 --- a/crates/kernel/src/prism_curve.rs +++ b/crates/kernel/src/prism_curve.rs @@ -302,7 +302,8 @@ pub(crate) fn segment(run: &Run, plane: &Plane, tol: f64, work: &mut usize) -> O /// `run` in `plane` exactly as segments: as [`segment`], and a curve of several Bézier spans /// (a chain of a font's curves, a spline through points) as one segment per span, each the /// line, conic or Bézier it is, for a planar region's outline. `None` when the edge doesn't lie -/// in a plane parallel to `plane` or isn't read exactly. +/// in a plane parallel to `plane` or isn't read exactly. Only planar sheets read on SMLib use it. +#[cfg(feature = "smlib")] pub(crate) fn projected(run: &Run, plane: &Plane, tol: f64, work: &mut usize) -> Option> { read(run, plane, tol, work, true) }