mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-23 04:27:11 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
58b159776d
commit
859f93e916
1 changed files with 2 additions and 4 deletions
|
|
@ -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<Vec<f32>> {
|
|||
}
|
||||
|
||||
// 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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue