Sort on recursive search

Run clippy
This commit is contained in:
Cameron
2024-12-06 11:21:42 -05:00
parent 4a91c6344a
commit 3ce1b84604
5 changed files with 24 additions and 25 deletions

View File

@@ -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)
}
}