From 9fa6558e71a86e5a58445f1967025ac3511abe86 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 3 May 2020 12:18:01 +0200 Subject: evtclib: include as a dependency, not submodule With evtclib being on crates.io now (and generally, being available publicly through git), there is no longer a need to have a copy of the evtclib repository in this repository. The main reason was that evtclib was private when I started it, so the easiest way to include it was through a git submodule. That reason is no longer valid. If we really *need* to use the git version, it is also better to just point Cargo to the repository and let it deal with keeping the repository up-to-date, rather than using git submodules. This commit also updates Cargo.lock, so there is a bit of noise from also adding ctrlc as a dependency. --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 { .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 } -- cgit v1.2.3