diff options
| author | Max Audron <audron@cocaine.farm> | 2021-09-07 12:53:01 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-09-07 12:53:01 +0200 |
| commit | d69a7f9405444e86475f615f91ba6c924a293096 (patch) | |
| tree | f0434edb78d4954db9da5787397fdd514aa6c736 /src/lib.rs | |
| parent | handle error cases in sed module (diff) | |
put benchmark behind feature flag we can compile using stable rust
Diffstat (limited to '')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,5 @@ -#![feature(test)] +#![cfg_attr(all(test, feature = "bench"), feature(test))] +#[cfg(all(test, feature = "bench"))] extern crate test; use anyhow::Result; @@ -19,7 +20,6 @@ macro_rules! reply { }; } - pub struct Bot { pub config: config::Config, pub irc_client: irc::client::Client, @@ -37,7 +37,7 @@ impl Bot { info!("using password from env var"); config.user.password = var } - Err(_) => () + Err(_) => (), } let irc_client = Client::from_config(config.clone().into()).await?; |
