From f109c10475e9c5824249bad06209ccc48b2891b0 Mon Sep 17 00:00:00 2001 From: Aaron Weiss Date: Mon, 17 Sep 2018 18:08:21 -0400 Subject: [PATCH] Fixed a warning in config.rs (for some tests) and the README example. --- README.md | 2 +- src/client/data/config.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e611fc..d1f369d 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ fn main() { }; let mut reactor = IrcReactor::new().unwrap(); - let client = reactor.prepare_client_and_connect(config).unwrap(); + let client = reactor.prepare_client_and_connect(&config).unwrap(); client.identify().unwrap(); reactor.register_client_with_handler(client, |client, message| { diff --git a/src/client/data/config.rs b/src/client/data/config.rs index f72d99e..d7e5575 100644 --- a/src/client/data/config.rs +++ b/src/client/data/config.rs @@ -557,6 +557,7 @@ mod test { use super::Config; + #[allow(unused)] fn test_config() -> Config { Config { owners: Some(vec![format!("test")]),