Fixed a warning in config.rs (for some tests) and the README example.
This commit is contained in:
parent
befe0ada84
commit
f109c10475
2 changed files with 2 additions and 1 deletions
|
@ -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| {
|
||||
|
|
|
@ -557,6 +557,7 @@ mod test {
|
|||
|
||||
use super::Config;
|
||||
|
||||
#[allow(unused)]
|
||||
fn test_config() -> Config {
|
||||
Config {
|
||||
owners: Some(vec![format!("test")]),
|
||||
|
|
Loading…
Reference in a new issue