Created
March 13, 2018 17:15
-
-
Save teburd/4028d2bc77571cb08a1aa5c0e0f92b4a to your computer and use it in GitHub Desktop.
unconstraint lifetime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impl<'a> Factory for CqlFactory { | |
type Session = CqlSession<'a>; | |
fn session(&self) -> FactoryResult<CqlSession<'a>> { | |
let client = tryl!(self.pool.get()); | |
Ok(CqlSession::new(&self.cfg, client)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment