Skip to content

Commit de3fba5

Browse files
committed
fix: usearch Index::restore expects &str not &PathBuf
1 parent 9b49795 commit de3fba5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/core/src/palace/store/usearch_sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl Inner {
2222

2323
let index = if index_path.exists() {
2424
unsafe {
25-
usearch::Index::restore(&index_path)
25+
usearch::Index::restore(index_path.to_string_lossy().as_ref())
2626
.map_err(|e| anyhow::anyhow!("usearch restore: {e}"))?
2727
}
2828
} else {

0 commit comments

Comments
 (0)