Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use slicing

laurenspriemf4c0899e0255
diff --git a/mobile/apps/photos/rust/src/api/usearch_api.rs b/mobile/apps/photos/rust/src/api/usearch_api.rs
index 34e9fa216d..49e8301375 100644
--- a/mobile/apps/photos/rust/src/api/usearch_api.rs
+++ b/mobile/apps/photos/rust/src/api/usearch_api.rs
@@ -60,7 +60,7 @@ impl VectorDB {
}
}
- pub fn add_vector(&self, key: u64, vector: &Vec<f32>) {
+ pub fn add_vector(&self, key: u64, vector: &[f32]) {
if self.contains_vector(key) {
self.remove_vector(key);
} else {