Fixed warnings on Rust master.
This commit is contained in:
parent
aaf5013407
commit
b7912ee592
4 changed files with 6 additions and 6 deletions
|
@ -1,10 +1,9 @@
|
||||||
#![feature(old_io, std_misc)]
|
#![feature(std_misc, thread_sleep)]
|
||||||
extern crate irc;
|
extern crate irc;
|
||||||
|
|
||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
use std::old_io::timer::sleep;
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::thread::spawn;
|
use std::thread::{sleep, spawn};
|
||||||
use std::time::duration::Duration;
|
use std::time::duration::Duration;
|
||||||
use irc::client::prelude::*;
|
use irc::client::prelude::*;
|
||||||
|
|
||||||
|
|
|
@ -210,7 +210,7 @@ mod test {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_fail]
|
#[should_panic]
|
||||||
fn to_message_invalid_format() {
|
fn to_message_invalid_format() {
|
||||||
":invalid :message".to_message();
|
":invalid :message".to_message();
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#![stable]
|
#![stable]
|
||||||
use std::borrow::ToOwned;
|
use std::borrow::ToOwned;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
use std::error::Error as StdError;
|
||||||
use std::io::{BufReader, BufWriter, Error, ErrorKind, Result};
|
use std::io::{BufReader, BufWriter, Error, ErrorKind, Result};
|
||||||
use std::sync::{Mutex, RwLock};
|
use std::sync::{Mutex, RwLock};
|
||||||
use std::iter::Map;
|
use std::iter::Map;
|
||||||
|
@ -434,7 +435,7 @@ mod test {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_fail(message = "All specified nicknames were in use.")]
|
#[should_panic(message = "All specified nicknames were in use.")]
|
||||||
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";
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#![unstable]
|
#![unstable]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
|
|
||||||
#![feature(collections, core, io, net, path)]
|
#![feature(collections, core, io, str_char, tcp)]
|
||||||
#[cfg(feature = "ctcp")] extern crate time;
|
#[cfg(feature = "ctcp")] extern crate time;
|
||||||
#[cfg(feature = "encode")] extern crate encoding;
|
#[cfg(feature = "encode")] extern crate encoding;
|
||||||
extern crate "rustc-serialize" as rustc_serialize;
|
extern crate "rustc-serialize" as rustc_serialize;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue