From 0cdfefe02d7ade0744adb1bd44796e48440ea52a Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 2 Aug 2018 13:57:55 +0200 Subject: Fix clippy issues. --- src/utils/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/mod.rs b/src/utils/mod.rs index ad6cff1..23b551e 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -7,7 +7,7 @@ use std::fmt::Display; type Pool = r2d2::Pool>; /// Initializes a database pool. -pub fn init_db_pool<'a>(dburl: &'a str) -> Pool { +pub fn init_db_pool(dburl: &str) -> Pool { let manager = ConnectionManager::::new(dburl); r2d2::Pool::builder().build(manager).expect("db pool") } -- cgit v1.2.3