Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
penberg committed Feb 6, 2025
1 parent f769d1a commit 0012e9d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/vector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ pub fn vector_extract(args: &[OwnedValue]) -> Result<OwnedValue> {
};

if blob.is_empty() {
return Ok(OwnedValue::Text(crate::types::Text::new(
std::rc::Rc::new("[]".to_string()),
)));
return Ok(OwnedValue::Text(crate::types::Text::new(std::rc::Rc::new(
"[]".to_string(),
))));
}

let vector_type = vector_type(blob)?;
let vector = vector_deserialize(vector_type, blob)?;
Ok(OwnedValue::Text(crate::types::Text::new(
std::rc::Rc::new(vector_to_text(&vector)),
)))
Ok(OwnedValue::Text(crate::types::Text::new(std::rc::Rc::new(
vector_to_text(&vector),
))))
}

pub fn vector_distance_cos(args: &[OwnedValue]) -> Result<OwnedValue> {
Expand Down

0 comments on commit 0012e9d

Please sign in to comment.