From 1914706630743840ca3b0f3df6a5c0241469a5c8 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 2d5da0fc..cfb4de77 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") }