]> Untitled Git - lemmy.git/blobdiff - crates/api/src/lib.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / api / src / lib.rs
index f47d1bd56dc3b07c54a2a2ad079d37da06e10eee..988dac27ab4085f95c30f216eba42343d88d336e 100644 (file)
@@ -94,6 +94,7 @@ mod tests {
   #[serial]
   async fn test_should_not_validate_user_token_after_password_change() {
     let pool = &build_db_pool_for_tests().await;
+    let pool = &mut pool.into();
     let secret = Secret::init(pool).await.unwrap();
     let settings = &SETTINGS.to_owned();