From 9f834b2ba32444fdc6efebd601d062a7f71b3fcb Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Wed, 19 Sep 2018 00:45:40 +0200 Subject: Compile without `cache`-feature (#393) --- src/framework/standard/help_commands.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/framework') 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, 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, 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, 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, H>, args: &'a Args, -- cgit v1.2.3