refactor: harden clippy lints

This commit is contained in:
seth 2024-01-27 23:18:35 -05:00
parent 2b3d81cfa4
commit a4abdd72e4
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
19 changed files with 39 additions and 37 deletions

View file

@ -1,4 +1,4 @@
use crate::api::rory::get_rory;
use crate::api::rory;
use crate::Context;
use color_eyre::eyre::Result;
@ -11,7 +11,7 @@ pub async fn rory(
ctx: Context<'_>,
#[description = "specify a Rory ID"] id: Option<u64>,
) -> Result<()> {
let rory = get_rory(id).await?;
let rory = rory::get(id).await?;
let embed = {
let embed = CreateEmbed::new();

View file

@ -15,7 +15,7 @@ static TAGS: Lazy<Vec<Tag>> = Lazy::new(|| serde_json::from_str(env!("TAGS")).un
#[poise::command(slash_command, prefix_command)]
pub async fn tag(
ctx: Context<'_>,
#[description = "the copypasta you want to send"] name: TagChoice,
#[description = "the copypasta you want to send"] name: Choice,
user: Option<User>,
) -> Result<()> {
let tag_file = name.as_str();

View file

@ -5,7 +5,7 @@ use poise::Command;
mod general;
pub fn to_global_commands() -> Vec<Command<Data, Report>> {
pub fn get() -> Vec<Command<Data, Report>> {
vec![
general::joke(),
general::members(),