refactor: harden clippy lints
This commit is contained in:
parent
2b3d81cfa4
commit
a4abdd72e4
19 changed files with 39 additions and 37 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue