aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 61c332e..fd3399b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -457,13 +457,13 @@ fn get_guild_mapping(log: &Log) -> HashMap<u64, String> {
.filter_map(|event| {
if let EventKind::Guild {
source_agent_addr,
- ref api_guild_id,
+ api_guild_id,
..
- } = event.kind
+ } = event.kind()
{
api_guild_id
.as_ref()
- .map(|api_id| (source_agent_addr, api_id.clone()))
+ .map(|api_id| (*source_agent_addr, api_id.clone()))
} else {
None
}