denzell/ simplify sync qdrant script #5291
Annotations
3 errors
clippy_check
Clippy has exited with exit code 101
|
accessing first element with `qdrant_point_ids.get(0)`:
src/bin/sync-qdrant.rs#L78
error: accessing first element with `qdrant_point_ids.get(0)`
--> src/bin/sync-qdrant.rs:78:21
|
78 | qdrant_point_ids.get(0),
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `qdrant_point_ids.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `-D clippy::get-first` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::get_first)]`
|
you are using an explicit closure for copying elements:
src/bin/sync-qdrant.rs#L62
error: you are using an explicit closure for copying elements
--> src/bin/sync-qdrant.rs:62:41
|
62 | let qdrant_points_missing = qdrant_point_ids
| _________________________________________^
63 | | .iter()
64 | | .filter(|x| !pg_point_ids.contains(x))
65 | | .map(|x| *x)
| |____________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
= note: `-D clippy::map-clone` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::map_clone)]`
help: consider calling the dedicated `copied` method
|
62 ~ let qdrant_points_missing = qdrant_point_ids
63 + .iter()
64 + .filter(|x| !pg_point_ids.contains(x)).copied()
|
|