From e10089138fd3f04a10e854878ee536d881d8a3f4 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Mon, 28 Sep 2020 20:20:30 +0200 Subject: [PATCH] symmetric diff --- src/api/info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/info.rs b/src/api/info.rs index e0961a5..2b31919 100644 --- a/src/api/info.rs +++ b/src/api/info.rs @@ -37,7 +37,7 @@ async fn groups( .iter() .cloned() .collect::>() - .difference(&token.iter().cloned().collect::>()) + .symmetric_difference(&token.iter().cloned().collect::>()) .cloned() .collect(); Ok(HttpResponse::Ok().json(AllGroups { token, packs, diff }))