diff --git a/crates/db_schema/src/impls/oauth_provider.rs b/crates/db_schema/src/impls/oauth_provider.rs index 24cd729fa..7665ba050 100644 --- a/crates/db_schema/src/impls/oauth_provider.rs +++ b/crates/db_schema/src/impls/oauth_provider.rs @@ -56,9 +56,9 @@ impl OAuthProvider { oauth_providers: Vec, ) -> Vec { oauth_providers - .iter() + .into_iter() .filter(|x| x.enabled) - .map(|x| PublicOAuthProvider(x.clone())) + .map(PublicOAuthProvider) .collect() }