Sort on recursive search

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

No files matched your search

+1 -2
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)
}
}