From 89ab2a9c672d013ab3993175dd77f1ea695042e8 Mon Sep 17 00:00:00 2001 From: Justin Gao Date: Mon, 1 Jun 2026 09:40:44 +0800 Subject: [PATCH] fix: add #[allow(dead_code)] to FrozenPrefix/PinnedPrefix impl blocks --- crates/tui/src/prompt_zones.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/tui/src/prompt_zones.rs b/crates/tui/src/prompt_zones.rs index 18352a8e..581ac355 100644 --- a/crates/tui/src/prompt_zones.rs +++ b/crates/tui/src/prompt_zones.rs @@ -84,6 +84,7 @@ pub struct FrozenPrefix { pub(crate) combined_sha256: String, } +#[allow(dead_code)] impl FrozenPrefix { /// Verify that `current_system_text` and `current_tools` match the frozen /// prefix. Returns `Ok(())` when stable, `Err(PrefixDrift)` on mismatch. @@ -139,6 +140,7 @@ pub struct PinnedPrefix { tools: Vec, } +#[allow(dead_code)] impl PinnedPrefix { #[must_use] pub fn new(system: Option<&SystemPrompt>, tools: Vec) -> Self {