Skip to content

Commit 36a094a

Browse files
authored
slice for efficiency (#692)
1 parent 873ca9b commit 36a094a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgml-extension/src/bindings/transformers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn transform(
5656
serde_json::from_str(&results).unwrap()
5757
}
5858

59-
pub fn embed(transformer: &str, inputs: Vec<&str>, kwargs: &serde_json::Value) -> Vec<Vec<f32>> {
59+
pub fn embed(transformer: &str, inputs: &[&str], kwargs: &serde_json::Value) -> Vec<Vec<f32>> {
6060
crate::bindings::venv::activate();
6161

6262
let kwargs = serde_json::to_string(kwargs).unwrap();

0 commit comments

Comments
 (0)