Remove unused imports and fix broken test

This commit is contained in:
Dominik Miedziński 2017-03-15 17:28:07 +01:00
parent 1f7d13399d
commit 59b79c06cc
2 changed files with 2 additions and 3 deletions

View file

@ -231,12 +231,11 @@ impl Connection for MockConnection {
} }
mod imp { mod imp {
use std::io::prelude::*;
use std::io::Result; use std::io::Result;
use std::io::Error; use std::io::Error;
use std::io::ErrorKind; use std::io::ErrorKind;
use std::sync::Mutex; 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; #[cfg(feature = "encode")] use encoding::label::encoding_from_whatwg_label;
use client::data::kinds::{IrcRead, IrcWrite}; use client::data::kinds::{IrcRead, IrcWrite};

View file

@ -700,7 +700,7 @@ mod test {
} }
#[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() { fn ran_out_of_nicknames() {
let value = ":irc.pdgn.co 433 * test :Nickname is already in use.\r\n\ 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"; :irc.pdgn.co 433 * test2 :Nickname is already in use.\r\n";