Remove stale clippy allows and the obsolete large-error-threshold override (#10337)

* Drop obsolete clippy large-error-threshold override

The 256 threshold was pinned for clippy 1.87 while tonic's `Status` was a
large error type. Upstream boxed its contents in `5de7bad` (hyperium/tonic#2253),
which is in the pinned 0.14.6 fork, so `Status` is now a single `Box` and the
default threshold of 128 passes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Remove stale clippy allows

These 11 allows no longer suppress anything under any of the three CI clippy
configurations (default, --all-targets, --all-targets --all-features).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Arnaud Gourlay
2026-09-03 12:45:50 +02:00
committed by timvisee
co-authored by Claude Opus 5
parent 334d180202
commit 8065b9efa3
8 changed files with 0 additions and 13 deletions
-2
View File
@@ -1,5 +1,3 @@
# For Rust 1.87 until fixed: <https://github.com/hyperium/tonic/issues/2253>
large-error-threshold = 256
disallowed-types = [
# Use fs_err instead of std::fs and tokio::fs
-1
View File
@@ -878,7 +878,6 @@ mod tests {
vec![Some(pointer(2)), Some(pointer(3)),]
);
assert_eq!(tracker.get_range::<Random>(7..9).unwrap(), vec![None, None]);
#[allow(clippy::reversed_empty_ranges)]
let empty = tracker.get_range::<Random>(3..3).unwrap();
assert!(empty.is_empty());
}
@@ -421,7 +421,6 @@ impl SegmentsSearcher {
/// Byte-blob analogue of [`Self::retrieve`]: returns vectors as
/// storage-native bytes ([`SegmentRecordRaw`]), avoiding a lossy
/// quantization round-trip when relocating points during shard transfer.
#[allow(clippy::too_many_arguments)]
pub async fn retrieve_raw(
segments: LockedSegmentHolder,
points: &[PointIdType],
-5
View File
@@ -758,7 +758,6 @@ fn zero_vector_size_rejected_at_load() {
.expect("vec field exists")
.size = 0;
#[allow(clippy::err_expect)]
let err = EdgeShard::load(path, Some(config))
.err()
.expect("load with size=0 should be rejected, not crash the engine");
@@ -999,7 +998,6 @@ fn oversized_hnsw_params_rejected_not_allocated() {
] {
let dir = tempfile::tempdir().expect("tempdir failed");
let path = dir.path().to_string_lossy().into_owned();
#[allow(clippy::err_expect)]
let err = EdgeShard::load(path, Some(make(hnsw)))
.err()
.unwrap_or_else(|| panic!("{label}: load should be rejected, not allocated"));
@@ -1217,7 +1215,6 @@ fn nested_prefetch(depth: u32) -> qdrant_edge_ffi::Prefetch {
/// Assert that `upsert_points` rejects `vector` eagerly (at the constructor,
/// before any shard is involved) with `InvalidArgument`.
fn assert_vector_rejected(vector: Vector) {
#[allow(clippy::err_expect)]
let err = UpdateOperation::upsert_points(
vec![Point {
id: PointId::NumId { value: 1 },
@@ -3040,7 +3037,6 @@ fn create_and_delete_named_vector_field() {
// Size bound is enforced at the boundary.
// `.err().expect()` rather than `.expect_err()`: the Ok type involves a
// non-`Debug` UniFFI object, so `expect_err` does not compile.
#[allow(clippy::err_expect)]
let err = UpdateOperation::create_dense_vector("bad".to_string(), 0, Distance::Dot, None, None)
.err()
.expect("size 0 must be rejected");
@@ -3283,7 +3279,6 @@ fn lifecycle_additions_work() {
// `create` on an occupied path must fail; on a fresh path it must work.
// `.err().expect()`: see note above — the Ok type is a non-`Debug`
// UniFFI object.
#[allow(clippy::err_expect)]
let err = EdgeShard::create(path_string, make_config())
.err()
.expect("create over an existing shard must fail");
@@ -35,7 +35,6 @@ mod read_ops;
/// [4]: crate::index::field_index::map_index::read_only::ReadOnlyMapIndex
/// [5]: super::read_ops
/// [6]: crate::index::field_index::field_index_base::read_only::ReadOnlyFieldIndex
#[allow(clippy::large_enum_variant)]
pub enum ReadOnlyFullTextIndex<S: UniversalRead> {
/// Loads into RAM from appendable storage format
Appendable(ReadOnlyAppendableFullTextIndex<S>),
@@ -35,7 +35,6 @@ mod read_ops;
/// [4]: super::on_disk_geo_index::OnDiskGeoIndex
/// [5]: super::GeoIndex::new_gridstore
/// [6]: super::GeoIndex::new_mmap
#[allow(clippy::large_enum_variant)]
pub enum ReadOnlyGeoIndex<S: UniversalRead> {
/// Loads into RAM from appendable Gridstore storage format.
Appendable(ReadOnlyAppendableGeoIndex<S>),
@@ -163,7 +163,6 @@ impl<S: UniversalRead> GraphLayersBatched<S> {
/// Batched version of
/// [`super::graph_layers::GraphLayersWithVectors::search_entry_with_vectors`].
#[allow(clippy::too_many_arguments)]
fn search_entry_with_vectors(
&self,
entry_point: EntryPoint,
@@ -175,7 +175,6 @@ impl<S: UniversalRead> ReadOnlyQuantizedVectors<S> {
/// placement — a demoted pinned placement opens the lazy mmap loaders over the same
/// flat files instead of the RAM ones, and a demoted cached placement skips the
/// page-cache priming.
#[allow(clippy::too_many_arguments)]
pub fn open(
fs: &impl UniversalReadFs<File = S>,
path: &Path,