From 749ff8ab04ec9c927ff8d278da527c00f4ce6a13 Mon Sep 17 00:00:00 2001 From: Marek 'seqre' Grzelak Date: Thu, 23 Feb 2023 23:12:26 -0500 Subject: [PATCH] [chore] clippy lints --- src/commands/todo.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/commands/todo.rs b/src/commands/todo.rs index 4de4c9b..7d90157 100644 --- a/src/commands/todo.rs +++ b/src/commands/todo.rs @@ -20,9 +20,7 @@ use lazy_static::lazy_static; use poise::serenity_prelude::{ ChannelId, CreateEmbed, GuildChannel, Member, MessageBuilder, UserId, }; -use time::{ - format_description, format_description::FormatItem, formatting::Formattable, OffsetDateTime, -}; +use time::{format_description, format_description::FormatItem, OffsetDateTime}; use tokio_stream::{self as stream, StreamExt}; use crate::{ @@ -211,7 +209,7 @@ pub async fn add( channel_id: &(i64::from(ctx.channel_id())), id: &new_id, todo: &text, - creation_date: &time.to_string(), + creation_date: &time, assignee, };