mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-21 11:23:48 +01:00
fix warnings: some more easy cases
This commit is contained in:
parent
971dee36fd
commit
fbfb76c34e
@ -102,6 +102,7 @@ struct AuthInfo {
|
||||
iv: Vec<u8>,
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
#[serde(tag = "Cmd")]
|
||||
enum CardCommand {
|
||||
|
@ -26,7 +26,7 @@ impl Callback {
|
||||
impl SessionCallback for Callback {
|
||||
fn callback(
|
||||
&self,
|
||||
session_data: &SessionData,
|
||||
_session_data: &SessionData,
|
||||
context: &Context,
|
||||
request: &mut Request,
|
||||
) -> Result<(), SessionError> {
|
||||
|
@ -113,7 +113,7 @@ impl AuthenticationSystem for Authentication {
|
||||
f.write_char(')')
|
||||
}
|
||||
}
|
||||
let mut response;
|
||||
let response;
|
||||
|
||||
let mut builder = results.get();
|
||||
if let State::Running(mut session, manager) =
|
||||
|
@ -36,7 +36,7 @@ impl PermissionSystem for Permissions {
|
||||
|
||||
tracing::trace!("method call");
|
||||
let roles = self.roles.list().collect::<Vec<&String>>();
|
||||
let mut builder = results.get();
|
||||
let builder = results.get();
|
||||
let mut b = builder.init_role_list(roles.len() as u32);
|
||||
for (i, role) in roles.into_iter().enumerate() {
|
||||
let mut role_builder = b.reborrow().get(i as u32);
|
||||
|
@ -221,7 +221,7 @@ impl card_d_e_s_fire_e_v2::Server for User {
|
||||
Vec::new()
|
||||
});
|
||||
if !tk.is_empty() {
|
||||
let mut b = results.get();
|
||||
let b = results.get();
|
||||
let mut lb = b.init_token_list(1);
|
||||
lb.set(0, &tk[..]);
|
||||
}
|
||||
|
@ -229,13 +229,13 @@ impl Diflouroborane {
|
||||
self.executor.spawn(apiserver.handle_until(rx));
|
||||
|
||||
let f = async {
|
||||
let mut sig = None;
|
||||
let mut sig;
|
||||
while {
|
||||
sig = signals.next().await;
|
||||
sig.is_none()
|
||||
} {}
|
||||
tracing::info!(signal = %sig.unwrap(), "Received signal");
|
||||
tx.send(());
|
||||
_ = tx.send(()); // ignore result, as an Err means that the executor we want to stop has already stopped
|
||||
};
|
||||
|
||||
self.executor.run(f);
|
||||
|
@ -182,6 +182,7 @@ impl UserDB {
|
||||
}
|
||||
|
||||
pub fn clear_txn(&self, txn: &mut RwTransaction) -> Result<(), db::Error> {
|
||||
// TODO: why is the result ignored here?
|
||||
self.db.clear(txn);
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user