diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
commit | dc0db358abe19481e475e10c32149b53370f1a1c (patch) | |
tree | ab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/gix-config/src | |
parent | Releasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-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-config/src')
-rw-r--r-- | vendor/gix-config/src/file/init/from_paths.rs | 2 | ||||
-rw-r--r-- | vendor/gix-config/src/file/section/body.rs | 1 | ||||
-rw-r--r-- | vendor/gix-config/src/file/section/mod.rs | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/vendor/gix-config/src/file/init/from_paths.rs b/vendor/gix-config/src/file/init/from_paths.rs index 73737075e..0eb7de69b 100644 --- a/vendor/gix-config/src/file/init/from_paths.rs +++ b/vendor/gix-config/src/file/init/from_paths.rs @@ -63,7 +63,7 @@ impl File<'static> { Self::from_paths_metadata_buf(path_meta, &mut buf, err_on_nonexisting_paths, options) } - /// Like [from_paths_metadata()][Self::from_paths_metadata()], but will use `buf` to temporarily store the config file + /// Like [`from_paths_metadata()`][Self::from_paths_metadata()], but will use `buf` to temporarily store the config file /// contents for parsing instead of allocating an own buffer. /// /// If `err_on_nonexisting_paths` is false, instead of aborting with error, we will continue to the next path instead. diff --git a/vendor/gix-config/src/file/section/body.rs b/vendor/gix-config/src/file/section/body.rs index ad196d133..694de18bd 100644 --- a/vendor/gix-config/src/file/section/body.rs +++ b/vendor/gix-config/src/file/section/body.rs @@ -152,6 +152,7 @@ impl<'event> Body<'event> { key_start.map(|key_start| { // value end needs to be offset by one so that the last value's index // is included in the range + #[allow(clippy::range_plus_one)] let value_range = value_range.start..value_range.end + 1; let key_range = key_start..value_range.end; (key_range, (value_range.start != key_start + 1).then_some(value_range)) diff --git a/vendor/gix-config/src/file/section/mod.rs b/vendor/gix-config/src/file/section/mod.rs index e8e331084..f73405960 100644 --- a/vendor/gix-config/src/file/section/mod.rs +++ b/vendor/gix-config/src/file/section/mod.rs @@ -52,7 +52,7 @@ impl<'a> Section<'a> { } /// Return the unique `id` of the section, for use with the `*_by_id()` family of methods - /// in [gix_config::File][crate::File]. + /// in [`gix_config::File`][crate::File]. pub fn id(&self) -> SectionId { self.id } |