Skip to content

Commit

Permalink
[CHORE] cleanup Debug of HnswIndexProvider (#2864)
Browse files Browse the repository at this point in the history
## Description of changes

*Summarize the changes made by this PR.*
 - Small refactor.

## Test plan
*How are these changes tested?*

- [ ]  `cargo check` locally; ci remotely

## Documentation Changes
*Are all docstrings for user-facing APIs updated if required? Do we need
to make documentation changes in the [docs
repository](https://github.com/chroma-core/docs)?*

No
  • Loading branch information
rescrv authored Sep 26, 2024
1 parent 07c7cdc commit 3e97018
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rust/index/src/hnsw_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@ impl Cacheable for HnswIndexRef {

impl Debug for HnswIndexProvider {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"HnswIndexProvider {{ temporary_storage_path: {:?} }}",
self.temporary_storage_path,
)
f.debug_struct("HnswIndexProvider")
.field("temporary_storage_path", &self.temporary_storage_path)
.finish_non_exhaustive()
}
}

Expand Down

0 comments on commit 3e97018

Please sign in to comment.