From 859f93e916a49a2f35ca66afcf7dcfdd9fbf58bb Mon Sep 17 00:00:00 2001 From: rUv Date: Wed, 28 Jan 2026 16:55:52 +0000 Subject: [PATCH] style(hnsw): fix rustfmt formatting issues - Move datum and false arguments to same line in from_polymorphic_datum - Join split let text_len = ... assignment to single line These changes fix CI rustfmt check failures. Co-Authored-By: Claude Opus 4.5 --- crates/ruvector-postgres/src/index/hnsw_am.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/ruvector-postgres/src/index/hnsw_am.rs b/crates/ruvector-postgres/src/index/hnsw_am.rs index bd9b6df14..617110f88 100644 --- a/crates/ruvector-postgres/src/index/hnsw_am.rs +++ b/crates/ruvector-postgres/src/index/hnsw_am.rs @@ -1413,8 +1413,7 @@ unsafe extern "C" fn hnsw_rescan( // Method 1: Try direct RuVector extraction (works for literals and some casts) if let Some(vector) = RuVector::from_polymorphic_datum( - datum, - false, // not null + datum, false, // not null typoid, ) { state.query_vector = vector.as_slice().to_vec(); @@ -1529,8 +1528,7 @@ unsafe fn try_convert_text_to_ruvector(datum: Datum) -> Option> { } // Extract the text content - let text_len = - pgrx::varlena::varsize_any_exhdr(detoasted as *const _); + let text_len = pgrx::varlena::varsize_any_exhdr(detoasted as *const _); let text_data = pgrx::varlena::vardata_any(detoasted as *const _) as *const u8; if text_len == 0 {