diff options
| author | Bond-009 <[email protected]> | 2018-09-19 00:45:40 +0200 |
|---|---|---|
| committer | Lakelezz <[email protected]> | 2018-09-19 00:45:40 +0200 |
| commit | 9f834b2ba32444fdc6efebd601d062a7f71b3fcb (patch) | |
| tree | 4abdec1c56c13047b430088049c5b97e353042a3 /src/framework | |
| parent | Don't log event deserialization failures in voice (diff) | |
| download | serenity-9f834b2ba32444fdc6efebd601d062a7f71b3fcb.tar.xz serenity-9f834b2ba32444fdc6efebd601d062a7f71b3fcb.zip | |
Compile without `cache`-feature (#393)
Diffstat (limited to 'src/framework')
| -rw-r--r-- | src/framework/standard/help_commands.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/framework/standard/help_commands.rs b/src/framework/standard/help_commands.rs index ca8fdc6..94f49e9 100644 --- a/src/framework/standard/help_commands.rs +++ b/src/framework/standard/help_commands.rs @@ -303,6 +303,7 @@ pub fn is_command_visible(command_options: &Arc<CommandOptions>, msg: &Message, /// Tries to extract a single command matching searched command name otherwise /// returns similar commands. +#[cfg(feature = "cache")] fn fetch_single_command<'a, H: BuildHasher>( groups: &'a HashMap<String, Arc<CommandGroup>, H>, name: &str, @@ -423,6 +424,7 @@ fn fetch_single_command<'a, H: BuildHasher>( } /// Tries to extract a single command matching searched command name. +#[cfg(feature = "cache")] fn fetch_all_eligible_commands_in_group<'a>( commands: &HashMap<&String, &InternalCommand>, command_names: &[&&String], @@ -471,6 +473,7 @@ fn fetch_all_eligible_commands_in_group<'a>( } /// Fetch groups with their commands. +#[cfg(feature = "cache")] fn create_command_group_commands_pair_from_groups<'a, H: BuildHasher>( groups: &'a HashMap<String, Arc<CommandGroup>, H>, group_names: &[&'a String], @@ -498,6 +501,7 @@ fn create_command_group_commands_pair_from_groups<'a, H: BuildHasher>( } /// Fetches a single group with its commands. +#[cfg(feature = "cache")] fn create_single_group<'a>( group: &CommandGroup, group_name: &'a str, @@ -527,6 +531,7 @@ let commands = remove_aliases(&group.commands); /// Iterates over all commands and forges them into a `CustomisedHelpData` /// taking `HelpOptions` into consideration when deciding on whether a command /// shall be picked and in what textual format. +#[cfg(feature = "cache")] pub fn create_customised_help_data<'a, H: BuildHasher>( groups: &'a HashMap<String, Arc<CommandGroup>, H>, args: &'a Args, |