diff options
| author | Maiddog <[email protected]> | 2018-03-18 06:02:00 -0500 |
|---|---|---|
| committer | alex <[email protected]> | 2018-03-18 12:02:00 +0100 |
| commit | 003dc2eed0f09cd214373f1581b7794d1483a689 (patch) | |
| tree | 9f66622ed84e27384c7b8eee536c875520562c90 /src/framework | |
| parent | Remove useless clones (#292) (diff) | |
| download | serenity-003dc2eed0f09cd214373f1581b7794d1483a689.tar.xz serenity-003dc2eed0f09cd214373f1581b7794d1483a689.zip | |
Add no_run to doctests that initialize a Client (#293)
Diffstat (limited to 'src/framework')
| -rw-r--r-- | src/framework/standard/configuration.rs | 18 | ||||
| -rw-r--r-- | src/framework/standard/help_commands.rs | 4 | ||||
| -rw-r--r-- | src/framework/standard/mod.rs | 22 |
3 files changed, 22 insertions, 22 deletions
diff --git a/src/framework/standard/configuration.rs b/src/framework/standard/configuration.rs index d54a821..bcb0119 100644 --- a/src/framework/standard/configuration.rs +++ b/src/framework/standard/configuration.rs @@ -96,7 +96,7 @@ impl Configuration { /// /// Create a HashSet in-place: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -121,7 +121,7 @@ impl Configuration { /// /// Create a HashSet in-place: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -159,7 +159,7 @@ impl Configuration { /// /// Ignore a set of commands, assuming they exist: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -282,7 +282,7 @@ impl Configuration { /// /// Create a HashSet in-place: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -297,7 +297,7 @@ impl Configuration { /// /// Create a HashSet beforehand: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -326,7 +326,7 @@ impl Configuration { /// /// Assign a basic prefix: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -351,7 +351,7 @@ impl Configuration { /// /// Assign a set of prefixes the bot can respond to: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -375,7 +375,7 @@ impl Configuration { /// /// Have the args be seperated by a comma and a space: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -400,7 +400,7 @@ impl Configuration { /// /// Have the args be seperated by a comma and a space; and a regular space: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # diff --git a/src/framework/standard/help_commands.rs b/src/framework/standard/help_commands.rs index 9979423..6a1ce82 100644 --- a/src/framework/standard/help_commands.rs +++ b/src/framework/standard/help_commands.rs @@ -82,7 +82,7 @@ pub fn has_all_requirements(cmd: &Arc<CommandOptions>, msg: &Message) -> bool { /// /// Use the command with `exec_help`: /// -/// ```rust +/// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -326,7 +326,7 @@ pub fn with_embeds<H: BuildHasher>( /// /// Use the command with `exec_help`: /// -/// ```rust +/// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # diff --git a/src/framework/standard/mod.rs b/src/framework/standard/mod.rs index 83b284d..03abce8 100644 --- a/src/framework/standard/mod.rs +++ b/src/framework/standard/mod.rs @@ -275,7 +275,7 @@ impl StandardFramework { /// Create and use a bucket that limits a command to 3 uses per 10 seconds with /// a 2 second delay inbetween invocations: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -314,7 +314,7 @@ impl StandardFramework { /// /// # Examples /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -373,7 +373,7 @@ impl StandardFramework { /// /// # Examples /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -425,7 +425,7 @@ impl StandardFramework { /// /// Create and use a simple bucket that has a 2 second delay between invocations: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -620,7 +620,7 @@ impl StandardFramework { /// /// Create and use a simple command: /// - /// ```rust + /// ```rust,no_run /// # #[macro_use] extern crate serenity; /// # /// # fn main() { @@ -730,7 +730,7 @@ impl StandardFramework { /// /// Creating a simple group: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -763,7 +763,7 @@ impl StandardFramework { /// /// Making a simple argument error responder: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -804,7 +804,7 @@ impl StandardFramework { /// /// Using `before` to log command usage: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -822,7 +822,7 @@ impl StandardFramework { /// /// Using before to prevent command usage: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -860,7 +860,7 @@ impl StandardFramework { /// /// Using `after` to log command usage: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -890,7 +890,7 @@ impl StandardFramework { /// /// Using `unrecognised_command`: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # |