From 445822efad6682edbe0b1e27448b997fae9564c5 Mon Sep 17 00:00:00 2001 From: Leah Amelia Chen Date: Sun, 9 Jul 2023 18:38:31 -0600 Subject: Refactors + add pin board module (#32) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor according to the rules of the cone school of rustâ„¢ * Add pin board module * cargo fmt * More cleanups + appease clippy --- src/commands/random_lore.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/random_lore.rs') diff --git a/src/commands/random_lore.rs b/src/commands/random_lore.rs index 345f753..b07660e 100644 --- a/src/commands/random_lore.rs +++ b/src/commands/random_lore.rs @@ -2,8 +2,8 @@ use crate::utils::get_random_lore; use serenity::builder::CreateApplicationCommand; use serenity::model::prelude::interaction::application_command::CommandDataOption; -pub async fn run(_: &[CommandDataOption]) -> String { - get_random_lore().await +pub fn run(_: &[CommandDataOption]) -> String { + get_random_lore() } pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand { -- cgit v1.2.3