From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 832061FF170 for ; Tue, 3 Dec 2024 11:21:11 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 597AD52F; Tue, 3 Dec 2024 11:21:14 +0100 (CET) From: Maximiliano Sandoval To: pbs-devel@lists.proxmox.com Date: Tue, 3 Dec 2024 11:20:36 +0100 Message-Id: <20241203102038.166031-8-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241203102038.166031-1-m.sandoval@proxmox.com> References: <20241203102038.166031-1-m.sandoval@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -1.348 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy FSL_BULK_SIG 0.001 Bulk signature with no Unsubscribe KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RAZOR2_CF_RANGE_51_100 1.886 Razor2 gives confidence level above 50% RAZOR2_CHECK 0.922 Listed in Razor2 (http://razor.sf.net/) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_SBL_A 0.1 Contains URL's A record listed in the Spamhaus SBL blocklist [185.199.110.153, 185.199.111.153, 185.199.108.153, 185.199.109.153] Subject: [pbs-devel] [PATCH proxmox 08/10] docs: remove empty lines in docs X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" Fixes the clippy lints: ``` warning: empty line after doc comment --> proxmox-lang/src/lib.rs:33:1 | 33 | / /// ``` 34 | | | |_ 35 | #[macro_export] 36 | macro_rules! try_block { | ---------------------- the comment documents this macro | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default = help: if the empty line is unintentional remove it warning: empty line after doc comment --> proxmox-router/src/cli/mod.rs:308:5 | 308 | / /// Can be used multiple times. 309 | | | |_ 310 | /// Finish the command line interface. 311 | pub fn build(self) -> CommandLineInterface { | ------------------------------------------ the comment documents this method | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default = help: if the empty line is unintentional remove it help: if the documentation should include the empty line include it in the comment | 309 | /// | ``` Signed-off-by: Maximiliano Sandoval --- proxmox-lang/src/lib.rs | 1 - proxmox-router/src/cli/mod.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/proxmox-lang/src/lib.rs b/proxmox-lang/src/lib.rs index cf191c0b..0abfd507 100644 --- a/proxmox-lang/src/lib.rs +++ b/proxmox-lang/src/lib.rs @@ -31,7 +31,6 @@ pub mod ops; /// }) /// .map_err(|e| format_err!("my try block returned an error - {}", e)); /// ``` - #[macro_export] macro_rules! try_block { { $($token:tt)* } => {{ (|| -> Result<_,_> { $($token)* })() }} diff --git a/proxmox-router/src/cli/mod.rs b/proxmox-router/src/cli/mod.rs index 2b5a69c8..2393da31 100644 --- a/proxmox-router/src/cli/mod.rs +++ b/proxmox-router/src/cli/mod.rs @@ -306,7 +306,7 @@ impl CliCommandMap { /// Builder style method to set extra options for the entire set of subcommands, taking a /// prepared `GlobalOptions` for potential /// Can be used multiple times. - + /// /// Finish the command line interface. pub fn build(self) -> CommandLineInterface { self.into() -- 2.39.5 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel