From 79146633203db377a6669ede5ff5bcb1b34d4d05 Mon Sep 17 00:00:00 2001 From: Jokler Date: Thu, 21 Feb 2019 00:33:06 +0100 Subject: Main: Fix doc test and warnings --- src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index c257544..50e6688 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,7 +17,7 @@ //! let mut bot = Bot::new("."); //! //! bot.add_plugin(plugins::help::Help::new()); -//! bot.add_plugin(plugins::emoji::Emoji::new()); +//! bot.add_plugin(plugins::unicode::Unicode::new()); //! //! bot.connect(&mut reactor, &config).unwrap(); //! reactor.run().unwrap(); @@ -50,11 +50,11 @@ extern crate chrono; extern crate circular_queue; extern crate humantime; extern crate irc; +extern crate rand; extern crate regex; extern crate reqwest; extern crate serde_json; extern crate time; -extern crate rand; pub mod error; pub mod plugin; @@ -326,7 +326,8 @@ impl ThreadedPlugins { impl fmt::Display for ThreadedPlugins { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - let plugin_names = self.plugins + let plugin_names = self + .plugins .iter() .map(|(_, p)| p.name().to_owned()) .collect::>(); -- cgit v1.2.3-70-g09d2