Fix some clippy warnings and remove unused function

This commit is contained in:
Daniel García
2020-08-28 22:10:28 +02:00
parent ff2684dfee
commit aaba1e8368
2 changed files with 3 additions and 2 deletions

View File

@ -320,7 +320,7 @@ impl Cipher {
// and `hide_passwords` columns. This could ideally be done as part
// of the query, but Diesel doesn't support a max() or bool_or()
// function on booleans and this behavior isn't portable anyway.
if let Some(vec) = query.load::<(bool, bool)>(conn).ok() {
if let Ok(vec) = query.load::<(bool, bool)>(conn) {
let mut read_only = false;
let mut hide_passwords = false;
for (ro, hp) in vec.iter() {