From bd64064a546c8d1e91230b7bd3194a6733d3da5f Mon Sep 17 00:00:00 2001 From: Richard Petrie Date: Fri, 4 May 2018 21:32:16 -0500 Subject: [PATCH] Fix database pool type in state guide. --- site/guide/state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/guide/state.md b/site/guide/state.md index e4faac4c..cc7f1fb4 100644 --- a/site/guide/state.md +++ b/site/guide/state.md @@ -212,7 +212,7 @@ type SqlitePool = Pool>; static DATABASE_URL: &'static str = env!("DATABASE_URL"); /// Initializes a database pool. -fn init_pool() -> Pool { +fn init_pool() -> SqlitePool { let manager = ConnectionManager::::new(DATABASE_URL); Pool::new(manager).expect("db pool") }