diff options
Diffstat (limited to 'src/framework/standard/create_help_command.rs')
| -rw-r--r-- | src/framework/standard/create_help_command.rs | 3 |
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 +} |