From 9da766976929417c4b8f487f8ec05b6f8b3f43ef Mon Sep 17 00:00:00 2001 From: Zeyla Hellyer Date: Sun, 15 Jul 2018 23:32:50 -0700 Subject: Fix some clippy lints Some lints were not resolved due to causing API changes. Most lints in the framework were left unfixed. --- src/framework/standard/create_help_command.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/framework/standard/create_help_command.rs') diff --git a/src/framework/standard/create_help_command.rs b/src/framework/standard/create_help_command.rs index 12a0b55..b1fd8ec 100644 --- a/src/framework/standard/create_help_command.rs +++ b/src/framework/standard/create_help_command.rs @@ -264,8 +264,7 @@ impl CreateHelpCommand { /// If `Some(String)` was set as `striked_commands_tip` and the `String` is empty, /// the creator will substitute content based on the `HelpBehaviour`-settings. pub(crate) fn finish(mut self) -> Arc { - - if &self.0.striked_commands_tip_in_dm == &Some(String::new()) { + if self.0.striked_commands_tip_in_dm == Some(String::new()) { self.0.striked_commands_tip_in_dm = self.produce_strike_text("direct messages"); } -- cgit v1.2.3