[pbs-devel] [PATCH proxmox v2 1/1] proxmox: generate_usage_str: don't require static lifetimes
Dominik Csapak
d.csapak at proxmox.com
Mon Sep 13 16:18:22 CEST 2021
this prevents us from using it under certain conditions and it's
actually not necessary, so drop them
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
proxmox/src/api/cli/format.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxmox/src/api/cli/format.rs b/proxmox/src/api/cli/format.rs
index 17efcd6..a4fb78d 100644
--- a/proxmox/src/api/cli/format.rs
+++ b/proxmox/src/api/cli/format.rs
@@ -60,7 +60,7 @@ pub fn generate_usage_str(
cli_cmd: &CliCommand,
format: DocumentationFormat,
indent: &str,
- skip_options: &'static [&'static str],
+ skip_options: &[&str],
) -> String {
let arg_param = cli_cmd.arg_param;
let fixed_param = &cli_cmd.fixed_param;
--
2.30.2
More information about the pbs-devel
mailing list