wrap expr call in braces

This commit is contained in:
Edward Shen 2020-05-02 01:06:22 -04:00
parent 4b7a981a88
commit b7bb17a42c
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -5,7 +5,9 @@ use serenity::async_trait;
use serenity::model::channel::Message; use serenity::model::channel::Message;
use serenity::prelude::{Context, EventHandler}; use serenity::prelude::{Context, EventHandler};
simple_responder!(FufufuResponder, r"(?:[fF][uU]){3,}", (get_desu())); // Yes, the blocks are necessary, rustc is bugged; check macro declaration
// for more info.
simple_responder!(FufufuResponder, r"(?:[fF][uU]){3,}", { get_desu() });
const DESU_STRINGS: &[&str] = &[ const DESU_STRINGS: &[&str] = &[
"です。", "です。",