aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commands/today/mod.rs5
1 files 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::<chrono::NaiveDate>() {
+ match _args.parse::<chrono::NaiveDate>() {
Ok(date) => {
log::debug!("overriding with date: {}", date);
result = date;