Unused lifetime parameter are unused.

This commit is contained in:
Nadja Reitzenstein 2021-09-20 13:47:48 +02:00
parent 4e3bb44040
commit d29b0c207d

View File

@ -82,14 +82,14 @@ impl Callback<AppData, SessionData> for CB {
} }
} }
pub struct Auth<'a> { pub struct Auth {
pub ctx: RSASL<AppData, SessionData>, pub ctx: RSASL<AppData, SessionData>,
session: Rc<RefCell<Option<Session>>>, session: Rc<RefCell<Option<Session>>>,
access: Arc<AccessDB>, access: Arc<AccessDB>,
log: Logger, log: Logger,
} }
impl<'a> Auth<'a> { impl Auth {
pub fn new(log: Logger, dbs: Databases, session: Rc<RefCell<Option<Session>>>) -> Self { pub fn new(log: Logger, dbs: Databases, session: Rc<RefCell<Option<Session>>>) -> Self {
let mut ctx = SASL::new().unwrap(); let mut ctx = SASL::new().unwrap();
@ -103,7 +103,7 @@ impl<'a> Auth<'a> {
} }
use crate::schema::authenticationsystem_capnp::*; use crate::schema::authenticationsystem_capnp::*;
impl<'a> authentication_system::Server for Auth<'a> { impl authentication_system::Server for Auth {
fn mechanisms(&mut self, fn mechanisms(&mut self,
_: authentication_system::MechanismsParams, _: authentication_system::MechanismsParams,
mut res: authentication_system::MechanismsResults mut res: authentication_system::MechanismsResults