From 427acb073172f8db27694ef099c6cc848c32ff24 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 16 Jun 2023 21:32:18 +0200 Subject: [PATCH] relay: delint --- src/relay.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/relay.rs b/src/relay.rs index 2661c8d..04b15cd 100644 --- a/src/relay.rs +++ b/src/relay.rs @@ -43,7 +43,7 @@ impl Post<'_> { .chain( self.tags() .into_iter() - .map(|ref s| { + .flat_map(|ref s| { // Don't handle the empty hashtag `#` if s.is_empty() { return vec![]; @@ -65,7 +65,6 @@ impl Post<'_> { vec![actor1] } }) - .flatten() ) }