Fixed a warning in config.rs (for some tests) and the README example.

This commit is contained in:
Aaron Weiss 2018-09-17 18:08:21 -04:00
parent befe0ada84
commit f109c10475
No known key found for this signature in database
GPG key ID: 047D32DF25DC22EF
2 changed files with 2 additions and 1 deletions

View file

@ -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| {

View file

@ -557,6 +557,7 @@ mod test {
use super::Config;
#[allow(unused)]
fn test_config() -> Config {
Config {
owners: Some(vec![format!("test")]),