aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/create_help_command.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-12-16 13:24:09 -0800
committerZeyla Hellyer <[email protected]>2017-12-16 13:24:09 -0800
commit9b53582f5e5e9650abda4106124e7f9f4e78a90c (patch)
tree88bd56a75b1d110ea049abbaea88bb6e8a83dac3 /src/framework/standard/create_help_command.rs
parentFix compilation of examples (diff)
downloadserenity-9b53582f5e5e9650abda4106124e7f9f4e78a90c.tar.xz
serenity-9b53582f5e5e9650abda4106124e7f9f4e78a90c.zip
Fix most clippy lints, take more refeernces
Fix clippy lints and subsequently accept references for more function parameters.
Diffstat (limited to 'src/framework/standard/create_help_command.rs')
-rw-r--r--src/framework/standard/create_help_command.rs3
1 files changed, 2 insertions, 1 deletions
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<Help> {
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
+}