Fixed some lint issues

This commit is contained in:
Daniel García committed 2018-09-13 21:55:23 +02:00
1 parent 948554a20f
commit 8651df8c2a
11 files changed
+25 -27

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ fn twofactor_auth(
let providers: Vec<_> = twofactors.iter().map(|tf| tf.type_).collect();
// No twofactor token if twofactor is disabled
if twofactors.len() == 0 {
if twofactors.is_empty() {
return Ok(None);
}