diff --git a/rust/src/index/vector/diskann/search.rs b/rust/src/index/vector/diskann/search.rs index 4c4d827070..cd91d4b078 100644 --- a/rust/src/index/vector/diskann/search.rs +++ b/rust/src/index/vector/diskann/search.rs @@ -38,7 +38,7 @@ use crate::{ index::{ vector::VectorIndex, vector::{ - graph::{Graph, VertexWithDistance, GraphMapNeighbors}, + graph::{Graph, GraphMapNeighbors, VertexWithDistance}, Query, }, }, diff --git a/rust/src/index/vector/graph.rs b/rust/src/index/vector/graph.rs index 8bedffcb36..765770aa95 100644 --- a/rust/src/index/vector/graph.rs +++ b/rust/src/index/vector/graph.rs @@ -38,7 +38,7 @@ pub trait Graph { } #[async_trait] -pub trait GraphMapNeighbors : Graph { +pub trait GraphMapNeighbors: Graph { /// Map the neighbors of the vertex. async fn map_neighbors(&self, f: impl FnMut(u32) -> T) -> Result>; }