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 5F0391FF15F for ; Mon, 2 Dec 2024 10:58:14 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2448A12EC6; Mon, 2 Dec 2024 10:58:14 +0100 (CET) From: Maximiliano Sandoval To: pbs-devel@lists.proxmox.com Date: Mon, 2 Dec 2024 10:58:00 +0100 Message-Id: <20241202095808.128299-5-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241202095808.128299-1-m.sandoval@proxmox.com> References: <20241202095808.128299-1-m.sandoval@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -1.359 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.111.153, 185.199.109.153, 185.199.108.153, 185.199.110.153] Subject: [pbs-devel] [PATCH backup 05/13] docs: use sublist indentation 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 doc_lazy_continuation clippy lint, e.g.: ``` warning: doc list item without indentation --> src/server/pull.rs:764:5 | 764 | /// -- attempt to pull each NS in turn | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation help: indent this line | 764 | /// -- attempt to pull each NS in turn | ++ ``` Signed-off-by: Maximiliano Sandoval --- pbs-client/src/pxar/mod.rs | 2 +- pbs-config/src/acl.rs | 4 ++-- src/server/pull.rs | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pbs-client/src/pxar/mod.rs b/pbs-client/src/pxar/mod.rs index 661501782..c55c942b7 100644 --- a/pbs-client/src/pxar/mod.rs +++ b/pbs-client/src/pxar/mod.rs @@ -32,7 +32,7 @@ //! //! * `FILENAME` -- name of the first directory entry (strictly ordered!) //! * `` -- serialization of the first directory entry's metadata and contents, -//! following the exact same archive format +//! following the exact same archive format //! * `FILENAME` -- name of the second directory entry (strictly ordered!) //! * `` -- serialization of the second directory entry //! * ... diff --git a/pbs-config/src/acl.rs b/pbs-config/src/acl.rs index a06b918ad..d8138078c 100644 --- a/pbs-config/src/acl.rs +++ b/pbs-config/src/acl.rs @@ -646,8 +646,8 @@ impl AclTree { /// - iterate over all intermediate nodes along `path` and collect roles with `propagate` set /// - get all (propagating and non-propagating) roles for last component of path /// - more specific role maps replace less specific role maps - /// -- user/token is more specific than group at each level - /// -- roles lower in the tree are more specific than those higher up along the path + /// -- user/token is more specific than group at each level + /// -- roles lower in the tree are more specific than those higher up along the path pub fn roles(&self, auth_id: &Authid, path: &[&str]) -> HashMap { let mut node = &self.root; let mut role_map = node.extract_roles(auth_id, path.is_empty()); diff --git a/src/server/pull.rs b/src/server/pull.rs index 361ed0687..516abfe5d 100644 --- a/src/server/pull.rs +++ b/src/server/pull.rs @@ -246,8 +246,8 @@ fn verify_archive(info: &FileInfo, csum: &[u8; 32], size: u64) -> Result<(), Err /// /// Pulling an archive consists of the following steps: /// - Load archive file into tmp file -/// -- Load file into tmp file -/// -- Verify tmp file checksum +/// -- Load file into tmp file +/// -- Verify tmp file checksum /// - if archive is an index, pull referenced chunks /// - Rename tmp file into real path async fn pull_single_archive<'a>( @@ -328,10 +328,10 @@ async fn pull_single_archive<'a>( /// /// Pulling a snapshot consists of the following steps: /// - (Re)download the manifest -/// -- if it matches and is not corrupt, only download log and treat snapshot as already synced +/// -- if it matches and is not corrupt, only download log and treat snapshot as already synced /// - Iterate over referenced files -/// -- if file already exists, verify contents -/// -- if not, pull it from the remote +/// -- if file already exists, verify contents +/// -- if not, pull it from the remote /// - Download log if not already existing async fn pull_snapshot<'a>( reader: Arc, @@ -495,7 +495,7 @@ async fn pull_snapshot_from<'a>( /// - Sort by snapshot time /// - Get last snapshot timestamp on local datastore /// - Iterate over list of snapshots -/// -- pull snapshot, unless it's not finished yet or older than last local snapshot +/// -- pull snapshot, unless it's not finished yet or older than last local snapshot /// - (remove_vanished) list all local snapshots, remove those that don't exist on remote /// /// Backwards-compat: if `source_namespace` is [None], only the group type and ID will be sent to the @@ -760,8 +760,8 @@ fn check_and_remove_vanished_ns( /// Pulling a store consists of the following steps: /// - Query list of namespaces on the remote /// - Iterate list -/// -- create sub-NS if needed (and allowed) -/// -- attempt to pull each NS in turn +/// -- create sub-NS if needed (and allowed) +/// -- attempt to pull each NS in turn /// - (remove_vanished && max_depth > 0) remove sub-NS which are not or no longer available on the remote /// /// Backwards compat: if the remote namespace is `/` and recursion is disabled, no namespace is -- 2.39.5 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel