aboutsummaryrefslogtreecommitdiff
path: root/src/framework/create_group.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/create_group.rs')
-rw-r--r--src/framework/create_group.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/framework/create_group.rs b/src/framework/create_group.rs
index a999268..b45c41e 100644
--- a/src/framework/create_group.rs
+++ b/src/framework/create_group.rs
@@ -34,7 +34,9 @@ impl CreateGroup {
if let Some(ref prefix) = self.0.prefix {
self.0.commands.insert(
format!("{} {}", prefix, n.to_owned()),
- CommandOrAlias::Alias(format!("{} {}", prefix, command_name.to_string())),
+ CommandOrAlias::Alias(
+ format!("{} {}", prefix, command_name.to_string()),
+ ),
);
} else {
self.0.commands.insert(
@@ -61,9 +63,10 @@ impl CreateGroup {
+ 'static {
let cmd = Arc::new(Command::new(f));
- self.0
- .commands
- .insert(command_name.to_owned(), CommandOrAlias::Command(cmd));
+ self.0.commands.insert(
+ command_name.to_owned(),
+ CommandOrAlias::Command(cmd),
+ );
self
}