diff options
| author | Jokler <jokler.contact@gmail.com> | 2017-12-11 03:41:27 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2017-12-11 03:41:27 +0100 |
| commit | df4d91e5a4b5cca1757d4cfac8849e7cd6b5524d (patch) | |
| tree | d7cd5a5d183d89b4cb7d67ad487d1704d506a88f /src/lib.rs | |
| parent | 6c3060994a3e04a59caeae7221650d0eec5e49fa (diff) | |
| download | frippy-df4d91e5a4b5cca1757d4cfac8849e7cd6b5524d.tar.gz frippy-df4d91e5a4b5cca1757d4cfac8849e7cd6b5524d.zip | |
Derive defaults where possible
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -56,6 +56,7 @@ pub use irc::error::Error as IrcError; use plugin::*; +#[derive(Default)] pub struct Bot { plugins: ThreadedPlugins, } @@ -171,7 +172,7 @@ fn process_msg(server: &IrcServer, Ok(()) } -#[derive(Clone, Debug)] +#[derive(Clone, Default, Debug)] struct ThreadedPlugins { plugins: HashMap<String, Arc<Plugin>>, } |
