Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-A clippy::needless_lifetimes
-A clippy::upper_case_acronyms
-A clippy::unused_unit
+-A clippy::manual_flatten
+-A clippy::clone_on_copy
+-A clippy::comparison_to_empty
+-A clippy::try_err
+-A clippy::unit_arg # does badly with if_chain, at least
let sname = entry.name().to_owned();
let uname = UniCase::new(sname.to_owned());
if let Some(previously) = members.insert(uname, i) {
- let sname = sname.to_owned();
drop(entry);
let previously = za.by_index_raw(previously)?;
let previously = previously.name();
if let Some(sk) = sk;
if sk.id == authed_key.id;
if let Some(want_key) = gl.keys.get(sk.id);
- if &want_key.nonce == &authed_key.nonce;
+ if want_key.nonce == authed_key.nonce;
then {
// We have checked id and nonce, against those allowed
let auth = auth_in.so_promise();