Skip to content

Commit 9807a1f

Browse files
committed
More complexity issues?
Signed-off-by: Adam Gutglick <[email protected]>
1 parent 5d0f439 commit 9807a1f

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

vortex-btrblocks/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ pub trait Compressor {
281281
/// Evaluates all available schemes against the provided statistics and returns
282282
/// the one with the highest compression ratio. Falls back to the default scheme
283283
/// if no scheme provides compression benefits.
284+
#[allow(clippy::cognitive_complexity)]
284285
fn choose_scheme(
285286
stats: &Self::StatsType,
286287
is_sample: bool,

vortex-duckdb/src/convert/expr.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ fn like_pattern_str(value: &duckdb::Expression) -> VortexResult<Option<String>>
4343
}
4444
}
4545

46-
#[expect(
47-
clippy::cognitive_complexity,
48-
reason = "complexity from exhaustive match on expression types"
49-
)]
5046
pub fn try_from_bound_expression(value: &duckdb::Expression) -> VortexResult<Option<Expression>> {
5147
let Some(value) = value.as_class() else {
5248
tracing::debug!("no expression class id {:?}", value.as_class_id());

vortex-ffi/src/file.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ pub unsafe extern "C-unwind" fn vx_file_scan(
325325
})
326326
}
327327

328+
#[allow(clippy::cognitive_complexity)]
328329
fn make_object_store(
329330
url: &Url,
330331
property_keys: &[String],

vortex-jni/src/object_store.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use vortex::error::VortexResult;
2323
use vortex::error::vortex_bail;
2424
use vortex::utils::aliases::hash_map::HashMap;
2525

26+
#[expect(clippy::cognitive_complexity)]
2627
pub(crate) fn make_object_store(
2728
url: &Url,
2829
properties: &HashMap<String, String>,
@@ -129,7 +130,7 @@ pub(crate) fn make_object_store(
129130
// Guard dropped at close of scope.
130131
}
131132

132-
let duration = std::time::Instant::now().duration_since(start);
133+
let duration = start.elapsed();
133134
tracing::debug!("make_object_store latency = {duration:?}");
134135

135136
Ok((store, scheme))

0 commit comments

Comments
 (0)