From 2b2e41f165b4a42b5ea98ba282548b9eb1d92070 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Sat, 26 Sep 2020 15:33:48 -0400 Subject: clean up warnings --- src/commands/today/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/today/mod.rs b/src/commands/today/mod.rs index ff06cc8..3f5373c 100644 --- a/src/commands/today/mod.rs +++ b/src/commands/today/mod.rs @@ -81,12 +81,13 @@ lazy_static! { #[command] -pub fn today(ctx: &mut Context, msg: &Message, args: Args) -> Result<()> { +pub fn today(ctx: &mut Context, msg: &Message, _args: Args) -> Result<()> { let today = { + #[allow(unused_mut)] let mut result = chrono::Local::today().naive_local(); #[cfg(debug_assertions)] { - match args.parse::() { + match _args.parse::() { Ok(date) => { log::debug!("overriding with date: {}", date); result = date; -- cgit v1.3.1