Remove the dead-code expectations from the lens draw and text (L1 c1.s1.f3)
Cut 1 marked `Lens::instructions` and `lens::draw` with `cfg_attr(not(test), expect(dead_code))` while only their tests read them. `select_answer` reads both now, so each marker produced an unfulfilled lint expectation warning. `reaches_for`, `leads_with` and the moved `ELABORATION_INSTRUCTIONS` carried no markers. No `expect(dead_code)` remains in `lens.rs`. Builds. The library's warning count returns to 9. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
18b1098c3f
commit
4457fde138
1 changed files with 0 additions and 8 deletions
|
|
@ -127,10 +127,6 @@ impl Lens {
|
|||
/// The elaborator's instructions under this lens: the shared sentence, then
|
||||
/// the lens clause. Read once, when a session is first built; the session
|
||||
/// then carries the text, and nothing rebuilds it from here.
|
||||
#[cfg_attr(
|
||||
not(test),
|
||||
expect(dead_code, reason = "read by its tests until a session carries a lens")
|
||||
)]
|
||||
pub(crate) fn instructions(self) -> String {
|
||||
format!(
|
||||
"{ELABORATION_INSTRUCTIONS} Lens: {}. Reach for {}. Lead with {}; every supplied tool remains available.",
|
||||
|
|
@ -190,10 +186,6 @@ struct LensPreimage {
|
|||
/// `select_band` uses, not a second entropy shape. The same world, session
|
||||
/// identity, and weights draw the same lens. Modulo rather than rejection
|
||||
/// sampling: the bias is bounded by `total_weight / 2^64`.
|
||||
#[cfg_attr(
|
||||
not(test),
|
||||
expect(dead_code, reason = "read by its tests until a session draws its lens")
|
||||
)]
|
||||
pub(crate) fn draw(
|
||||
weights: &LensWeights,
|
||||
world_id: WorldId,
|
||||
|
|
|
|||
Loading…
Reference in a new issue