Skip to content

Commit 519dcdf

Browse files
committed
inline the variable while we're at it
1 parent d8e2550 commit 519dcdf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

chombot/src/config.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ impl TournamentWatcherChannelListProvider for ChombotConfig {
2929
type TournamentWatcherChannelList = Vec<ChannelId>;
3030

3131
async fn tournament_watcher_channels(&self) -> Self::TournamentWatcherChannelList {
32-
let channel_ids = self
33-
.config
32+
self.config
3433
.guilds
3534
.values()
36-
.filter_map(|config| config.tournaments_watcher_channel_id);
37-
38-
channel_ids.collect()
35+
.filter_map(|config| config.tournaments_watcher_channel_id)
36+
.collect()
3937
}
4038
}
4139

0 commit comments

Comments
 (0)