Add missing .unwrap()

This commit is contained in:
Julian Braha 2024-01-24 18:19:03 +00:00
parent 85f5e7d0bb
commit 08d2ba72d6

View file

@ -63,7 +63,10 @@ async fn test_semantic_index(cx: &mut TestAppContext) {
languages.add(rust_language); languages.add(rust_language);
languages.add(toml_language); languages.add(toml_language);
let db_dir = tempfile::Builder::new().prefix("vector-store").tempdir(); let db_dir = tempfile::Builder::new()
.prefix("vector-store")
.tempdir()
.unwrap();
let db_path = db_dir.path().join("db.sqlite"); let db_path = db_dir.path().join("db.sqlite");
let embedding_provider = Arc::new(FakeEmbeddingProvider::default()); let embedding_provider = Arc::new(FakeEmbeddingProvider::default());