Use into_iter

This commit is contained in:
Dessalines 2024-12-22 18:18:10 -05:00
parent 00c9051e99
commit 32e9b83252

View file

@ -56,9 +56,9 @@ impl OAuthProvider {
oauth_providers: Vec<OAuthProvider>,
) -> Vec<PublicOAuthProvider> {
oauth_providers
.iter()
.into_iter()
.filter(|x| x.enabled)
.map(|x| PublicOAuthProvider(x.clone()))
.map(PublicOAuthProvider)
.collect()
}