From 9b53582f5e5e9650abda4106124e7f9f4e78a90c Mon Sep 17 00:00:00 2001 From: Zeyla Hellyer Date: Sat, 16 Dec 2017 13:24:09 -0800 Subject: Fix most clippy lints, take more refeernces Fix clippy lints and subsequently accept references for more function parameters. --- src/framework/standard/create_help_command.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 a8e8704..7e4c338 100644 --- a/src/framework/standard/create_help_command.rs +++ b/src/framework/standard/create_help_command.rs @@ -173,6 +173,7 @@ impl CreateHelpCommand { /// Finishes the creation of a help-command, returning `Help`. /// If `Some(String)` was set as `striked_commands_tip` and the `String` is empty, /// the creator will substitute content based on the `HelpBehaviour`-settings. + #[cfg_attr(feature = "cargo-clippy", allow(useless_if_let_seq))] pub(crate) fn finish(self) -> Arc { if self.0.striked_commands_tip == Some(String::new()) { let mut strike_text = String::from("~~`Striked commands`~~ are unavailable because they"); @@ -210,4 +211,4 @@ impl CreateHelpCommand { Arc::new(Help(function, Arc::new(options))) } -} \ No newline at end of file +} -- cgit v1.2.3