Skip to content

Commit 09143c6

Browse files
fix(query-engine): support current Clippy lint
1 parent ee5cea2 commit 09143c6

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎asap-query-engine/src/drivers/query/adapters/traits.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ impl std::error::Error for AdapterError {}
6060

6161
/// Trait for parsing incoming HTTP requests into internal query format
6262
/// Handles Axum extractors directly for different request types (GET/POST)
63+
#[allow(clippy::double_must_use)]
6364
#[async_trait]
6465
pub trait QueryRequestAdapter: Send + Sync {
6566
/// Parse a GET request with query parameters
@@ -106,6 +107,7 @@ pub trait QueryRequestAdapter: Send + Sync {
106107
}
107108

108109
/// Trait for formatting query results into protocol-specific HTTP responses
110+
#[allow(clippy::double_must_use)]
109111
#[async_trait]
110112
pub trait QueryResponseAdapter: Send + Sync {
111113
/// Format a successful query result into protocol response
@@ -135,6 +137,7 @@ pub trait QueryResponseAdapter: Send + Sync {
135137
/// define separate adapter traits.
136138
///
137139
/// Note: Fallback logic is handled separately via FallbackClient
140+
#[allow(clippy::double_must_use)]
138141
#[async_trait]
139142
pub trait HttpProtocolAdapter: QueryRequestAdapter + QueryResponseAdapter + Send + Sync {
140143
/// Get a descriptive name for this adapter (for logging/debugging)

‎asap-query-engine/src/drivers/query/fallback/mod.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ impl IntoResponse for FallbackResponse {
3737
}
3838

3939
/// Client for forwarding unsupported queries to a fallback backend
40+
#[allow(clippy::double_must_use)]
4041
#[async_trait]
4142
pub trait FallbackClient: Send + Sync {
4243
/// Execute a query against the fallback backend

‎asap-query-engine/src/planner_client.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub struct PlannerResult {
1414
pub punted_queries: Vec<String>,
1515
}
1616

17+
#[allow(clippy::double_must_use)]
1718
#[async_trait::async_trait]
1819
pub trait PlannerClient: Send + Sync {
1920
async fn plan(&self, config: ControllerConfig) -> Result<PlannerResult>;

‎asap-query-engine/src/precompute_engine/ingest_source.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ fn compile_spatial_filter(config: &AggregationConfig) -> Result<Vec<Matcher>, St
130130
///
131131
/// Implementors decode incoming data (HTTP, file, etc.) and push it
132132
/// into the engine via [`route_decoded_samples`].
133+
#[allow(clippy::double_must_use)]
133134
#[async_trait::async_trait]
134135
pub trait IngestSource: Send + Sync {
135136
async fn run(

0 commit comments

Comments
 (0)