aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/create_command.rs
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2017-11-30 16:55:58 +0100
committeralex <[email protected]>2017-11-30 16:55:58 +0100
commit031fc92e02c314cce9fc8febcc7900fa2d885941 (patch)
tree3d847544001f36f502e39a41e2d86dbf3474a0f0 /src/framework/standard/create_command.rs
parentUse `ToString`'s blanket impl for `Display`s (diff)
downloadserenity-031fc92e02c314cce9fc8febcc7900fa2d885941.tar.xz
serenity-031fc92e02c314cce9fc8febcc7900fa2d885941.zip
Make help-commands customisable (#227)
Diffstat (limited to 'src/framework/standard/create_command.rs')
-rw-r--r--src/framework/standard/create_command.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/framework/standard/create_command.rs b/src/framework/standard/create_command.rs
index 44e9988..0df649d 100644
--- a/src/framework/standard/create_command.rs
+++ b/src/framework/standard/create_command.rs
@@ -114,22 +114,22 @@ impl CreateCommand {
self
}
-
+
/// Like [`exec`] but accepts a `Command` directly.
///
/// [`exec`]: #method.exec
pub fn cmd<C: Command + 'static>(mut self, c: C) -> Self {
self.1 = FnOrCommand::Command(Arc::new(c));
-
+
self
}
-
+
/// Like [`cmd`] but says to the builder to use this command's options instead of its own.
///
/// [`cmd`]: #method.cmd
pub fn cmd_with_options<C: Command + 'static>(mut self, c: C) -> Self {
self.1 = FnOrCommand::CommandWithOptions(Arc::new(c));
-
+
self
}