Sort on recursive search
Run clippy
This commit is contained in:
1 parent
4a91c6344a
commit
3ce1b84604
5 files changed
+24
-25
No files matched your search
+1
-2
@@ -51,8 +51,7 @@ impl UserDao for TestUserDao {
|
||||
self.user_map
|
||||
.borrow()
|
||||
.iter()
|
||||
.find(|&u| u.username == user)
|
||||
.is_some()
|
||||
.any(|u| u.username == user)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user