Silence clippy's complaint about unelided lifetime in session.rs

This commit is contained in:
Thom Chiovoloni 2020-11-02 18:49:11 -08:00
parent 749266cae9
commit 1aeea123dd

View File

@ -29,7 +29,7 @@ pub struct Session<'conn> {
impl Session<'_> { impl Session<'_> {
/// Create a new session object /// Create a new session object
pub fn new<'conn>(db: &'conn Connection) -> Result<Session<'conn>> { pub fn new(db: &Connection) -> Result<Session<'_>> {
Session::new_with_name(db, DatabaseName::Main) Session::new_with_name(db, DatabaseName::Main)
} }