style(commands): changing all_commands to import

This commit is contained in:
Raphael 2026-02-12 19:51:25 +01:00
parent 3039eb1592
commit 0a6a42159d
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -19,7 +19,7 @@ pub struct CommandEntry {
inventory::collect!(CommandEntry);
pub fn all_commands() -> Vec<Box<dyn SlashCommand>> {
pub fn import() -> Vec<Box<dyn SlashCommand>> {
inventory::iter::<CommandEntry>
.into_iter()
.map(|entry| (entry.create)())