summaryrefslogtreecommitdiffstats
path: root/vendor/gix-pack/src/data/output
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/gix-pack/src/data/output
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gix-pack/src/data/output')
-rw-r--r--vendor/gix-pack/src/data/output/bytes.rs2
-rw-r--r--vendor/gix-pack/src/data/output/count/mod.rs4
-rw-r--r--vendor/gix-pack/src/data/output/count/objects/mod.rs2
-rw-r--r--vendor/gix-pack/src/data/output/count/objects/types.rs2
4 files changed, 5 insertions, 5 deletions
diff --git a/vendor/gix-pack/src/data/output/bytes.rs b/vendor/gix-pack/src/data/output/bytes.rs
index ec219db9d..6616bd14a 100644
--- a/vendor/gix-pack/src/data/output/bytes.rs
+++ b/vendor/gix-pack/src/data/output/bytes.rs
@@ -51,7 +51,7 @@ where
/// `output` writer, resembling a pack of `version` with exactly `num_entries` amount of objects contained in it.
/// `object_hash` is the kind of hash to use for the pack checksum and maybe other places, depending on the version.
///
- /// The input chunks are expected to be sorted already. You can use the [InOrderIter][gix_features::parallel::InOrderIter] to assure
+ /// The input chunks are expected to be sorted already. You can use the [`InOrderIter`][gix_features::parallel::InOrderIter] to assure
/// this happens on the fly holding entire chunks in memory as long as needed for them to be dispensed in order.
///
/// # Panics
diff --git a/vendor/gix-pack/src/data/output/count/mod.rs b/vendor/gix-pack/src/data/output/count/mod.rs
index bec75d6f3..0c33abd97 100644
--- a/vendor/gix-pack/src/data/output/count/mod.rs
+++ b/vendor/gix-pack/src/data/output/count/mod.rs
@@ -13,14 +13,14 @@ pub enum PackLocation {
}
impl PackLocation {
- /// Directly go through to LookedUp variant, panic otherwise
+ /// Directly go through to `LookedUp` variant, panic otherwise
pub fn is_none(&self) -> bool {
match self {
PackLocation::LookedUp(opt) => opt.is_none(),
PackLocation::NotLookedUp => unreachable!("must have been resolved"),
}
}
- /// Directly go through to LookedUp variant, panic otherwise
+ /// Directly go through to `LookedUp` variant, panic otherwise
pub fn as_ref(&self) -> Option<&crate::data::entry::Location> {
match self {
PackLocation::LookedUp(opt) => opt.as_ref(),
diff --git a/vendor/gix-pack/src/data/output/count/objects/mod.rs b/vendor/gix-pack/src/data/output/count/objects/mod.rs
index d56bc9a5f..a13e41146 100644
--- a/vendor/gix-pack/src/data/output/count/objects/mod.rs
+++ b/vendor/gix-pack/src/data/output/count/objects/mod.rs
@@ -329,7 +329,7 @@ mod expand {
&mut traverse_delegate,
)
.map_err(Error::TreeTraverse)?;
- for id in traverse_delegate.non_trees.iter() {
+ for id in &traverse_delegate.non_trees {
out.push(id_to_count(db, buf1, id, progress, stats, allow_pack_lookups));
}
break;
diff --git a/vendor/gix-pack/src/data/output/count/objects/types.rs b/vendor/gix-pack/src/data/output/count/objects/types.rs
index cd9e92c7a..f39a24ee4 100644
--- a/vendor/gix-pack/src/data/output/count/objects/types.rs
+++ b/vendor/gix-pack/src/data/output/count/objects/types.rs
@@ -77,7 +77,7 @@ impl Default for Options {
}
}
-/// The error returned by the pack generation iterator [bytes::FromEntriesIter][crate::data::output::bytes::FromEntriesIter].
+/// The error returned by the pack generation iterator [`bytes::FromEntriesIter`][crate::data::output::bytes::FromEntriesIter].
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error<FindErr, IterErr>