style(commands): changing all_commands to import
This commit is contained in:
parent
3039eb1592
commit
0a6a42159d
2 changed files with 2 additions and 3 deletions
|
|
@ -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)())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue