diff options
| author | Jokler <jokler.contact@gmail.com> | 2019-02-21 00:33:06 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2019-02-21 00:33:06 +0100 |
| commit | 79146633203db377a6669ede5ff5bcb1b34d4d05 (patch) | |
| tree | 188e1361ddc50fd4645df1bb0b9e03182cd6faa9 /src/lib.rs | |
| parent | b7e96ba8f1adf4426780de060d053437662c2d66 (diff) | |
| download | frippy-79146633203db377a6669ede5ff5bcb1b34d4d05.tar.gz frippy-79146633203db377a6669ede5ff5bcb1b34d4d05.zip | |
Main: Fix doc test and warnings
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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<C: FrippyClient + 'static> ThreadedPlugins<C> { impl<C: FrippyClient> fmt::Display for ThreadedPlugins<C> { 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::<Vec<String>>(); |
