Merge pull request #75 from miedzinski/fix-warnings
Remove unused imports and fix broken test
This commit is contained in:
commit
c402371450
2 changed files with 2 additions and 3 deletions
|
@ -231,12 +231,11 @@ impl Connection for MockConnection {
|
|||
}
|
||||
|
||||
mod imp {
|
||||
use std::io::prelude::*;
|
||||
use std::io::Result;
|
||||
use std::io::Error;
|
||||
use std::io::ErrorKind;
|
||||
use std::sync::Mutex;
|
||||
#[cfg(feature = "encode")] use encoding::{DecoderTrap, EncoderTrap, Encoding};
|
||||
#[cfg(feature = "encode")] use encoding::{DecoderTrap, EncoderTrap};
|
||||
#[cfg(feature = "encode")] use encoding::label::encoding_from_whatwg_label;
|
||||
use client::data::kinds::{IrcRead, IrcWrite};
|
||||
|
||||
|
|
|
@ -702,7 +702,7 @@ mod test {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic(message = "All specified nicknames were in use.")]
|
||||
#[should_panic(expected = "All specified nicknames were in use or disallowed.")]
|
||||
fn ran_out_of_nicknames() {
|
||||
let value = ":irc.pdgn.co 433 * test :Nickname is already in use.\r\n\
|
||||
:irc.pdgn.co 433 * test2 :Nickname is already in use.\r\n";
|
||||
|
|
Loading…
Reference in a new issue