Skip to content

Commit fbb0a08

Browse files
Disabling clippy on lints that we cannot do anything about. (#5814)
Co-authored-by: fulmicoton <paul.masurel@datadoghq.com>
1 parent c8c7a66 commit fbb0a08

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

quickwit/quickwit-opentelemetry/src/otlp/logs.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,11 @@ impl OtlpGrpcLogsService {
291291
}
292292

293293
#[instrument(skip_all, parent = parent_span, fields(num_log_records = Empty, num_bytes = Empty, num_parse_errors = Empty))]
294+
#[allow(clippy::result_large_err)]
294295
fn parse_logs(
295296
request: ExportLogsServiceRequest,
296297
parent_span: RuntimeSpan,
297-
) -> Result<ParsedLogRecords, Status> {
298+
) -> tonic::Result<ParsedLogRecords> {
298299
let log_records = parse_otlp_logs(request)?;
299300
let mut num_parse_errors = 0;
300301
let num_log_records = log_records.len() as u64;

quickwit/quickwit-opentelemetry/src/otlp/traces.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ impl OtlpGrpcTracesService {
755755
}
756756

757757
#[instrument(skip_all, parent = parent_span, fields(num_spans = Empty, num_bytes = Empty, num_parse_errors = Empty))]
758+
#[allow(clippy::result_large_err)]
758759
fn parse_spans(
759760
request: ExportTraceServiceRequest,
760761
parent_span: RuntimeSpan,

quickwit/quickwit-storage/src/cache/byte_range_cache.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ mod tests {
420420
prop_oneof![Just("path1"), Just("path2"),]
421421
}
422422

423+
#[allow(deprecated)]
423424
fn range_strategy() -> impl Strategy<Value = Range<usize>> {
424425
(0usize..11usize).prop_perturb(|start, mut rng| start..rng.gen_range(start..12usize))
425426
}

0 commit comments

Comments
 (0)