From c0ce839e0f93c2cfec1c857eebac6a0019f04df0 Mon Sep 17 00:00:00 2001 From: Lei Xu Date: Sat, 13 May 2023 13:46:49 -0700 Subject: [PATCH] cargo fmt --- rust/src/index/vector/diskann/search.rs | 2 +- rust/src/index/vector/graph.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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>; }