fix: suppress dead_code warnings for unused provider and lane completion items

This commit is contained in:
Yeachan-Heo
2026-04-05 03:22:32 +00:00
parent 1fb3759e7c
commit cd1ee43f33
2 changed files with 4 additions and 0 deletions

View File

@@ -7,8 +7,10 @@ use crate::types::{MessageRequest, MessageResponse};
pub mod anthropic; pub mod anthropic;
pub mod openai_compat; pub mod openai_compat;
#[allow(dead_code)]
pub type ProviderFuture<'a, T> = Pin<Box<dyn Future<Output = Result<T, ApiError>> + Send + 'a>>; pub type ProviderFuture<'a, T> = Pin<Box<dyn Future<Output = Result<T, ApiError>> + Send + 'a>>;
#[allow(dead_code)]
pub trait Provider { pub trait Provider {
type Stream; type Stream;

View File

@@ -19,6 +19,7 @@ use crate::AgentOutput;
/// ///
/// Returns `Some(LaneContext)` with `completed = true` if all conditions met, /// Returns `Some(LaneContext)` with `completed = true` if all conditions met,
/// `None` if lane should remain active. /// `None` if lane should remain active.
#[allow(dead_code)]
pub(crate) fn detect_lane_completion( pub(crate) fn detect_lane_completion(
output: &AgentOutput, output: &AgentOutput,
test_green: bool, test_green: bool,
@@ -65,6 +66,7 @@ pub(crate) fn detect_lane_completion(
} }
/// Evaluates policy actions for a completed lane. /// Evaluates policy actions for a completed lane.
#[allow(dead_code)]
pub(crate) fn evaluate_completed_lane( pub(crate) fn evaluate_completed_lane(
context: &LaneContext, context: &LaneContext,
) -> Vec<PolicyAction> { ) -> Vec<PolicyAction> {