diff --git a/src/bin/bot.rs b/src/bin/bot.rs index ef37068..752b9c6 100644 --- a/src/bin/bot.rs +++ b/src/bin/bot.rs @@ -4,7 +4,6 @@ extern crate regex; #[phase(plugin)] extern crate regex_macros; extern crate tox; -extern crate debug; use tox::core::*; diff --git a/src/core/mod.rs b/src/core/mod.rs index 468e14e..52c145c 100644 --- a/src/core/mod.rs +++ b/src/core/mod.rs @@ -278,7 +278,7 @@ impl ToxOptions { /// Use a proxy pub fn proxy(mut self, addr: &str, port: u16) -> ToxOptions { if addr.len() >= 256 { - fail!("proxy address is too long"); + panic!("proxy address is too long"); } self.txo.proxy_address.as_mut_slice()