summaryrefslogtreecommitdiffstats
path: root/vendor/gix-config/src/file/section
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix-config/src/file/section')
-rw-r--r--vendor/gix-config/src/file/section/body.rs1
-rw-r--r--vendor/gix-config/src/file/section/mod.rs2
2 files changed, 2 insertions, 1 deletions
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
}