diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-08-02 13:57:55 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-08-02 13:57:55 +0200 |
commit | 0cdfefe02d7ade0744adb1bd44796e48440ea52a (patch) | |
tree | 3d35188b28aa6f54482004fe1aeaec78cc755167 /src/utils | |
parent | 780f290a4eaf0b6941c9c10ef581a8ba7a66312d (diff) | |
download | rocket-blog-0cdfefe02d7ade0744adb1bd44796e48440ea52a.tar.gz rocket-blog-0cdfefe02d7ade0744adb1bd44796e48440ea52a.tar.bz2 rocket-blog-0cdfefe02d7ade0744adb1bd44796e48440ea52a.zip |
Fix clippy issues.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<ConnectionManager<PgConnection>>; /// 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::<PgConnection>::new(dburl); r2d2::Pool::builder().build(manager).expect("db pool") } |