Total WIP - try making Db a generic struct instead of a trait

This commit is contained in:
Max Brunsfeld 2022-11-09 19:28:06 -08:00
parent 7e02ac772a
commit bed06346d1
4 changed files with 133 additions and 902 deletions

View file

@ -625,7 +625,7 @@ async fn test_fuzzy_search_users() {
&["rhode-island", "colorado", "oregon"],
);
async fn fuzzy_search_user_names(db: &Arc<dyn Db>, query: &str) -> Vec<String> {
async fn fuzzy_search_user_names(db: &Arc<TestDb>, query: &str) -> Vec<String> {
db.fuzzy_search_users(query, 10)
.await
.unwrap()