mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-03 13:48:42 +00:00
Use into_iter
This commit is contained in:
parent
00c9051e99
commit
32e9b83252
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue