mirror of
https://github.com/instructkr/claude-code.git
synced 2026-04-06 03:08:48 +03:00
fix: suppress dead_code warnings for unused provider and lane completion items
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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> {
|
||||||
|
|||||||
Reference in New Issue
Block a user