summaryrefslogtreecommitdiffstats
path: root/vendor/object/src/read/elf/version.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/object/src/read/elf/version.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/object/src/read/elf/version.rs')
-rw-r--r--vendor/object/src/read/elf/version.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/object/src/read/elf/version.rs b/vendor/object/src/read/elf/version.rs
index 6d80ba1e3..cc87bbef1 100644
--- a/vendor/object/src/read/elf/version.rs
+++ b/vendor/object/src/read/elf/version.rs
@@ -183,12 +183,12 @@ impl<'data, Elf: FileHeader> VersionTable<'data, Elf> {
.map(Some)
}
- /// Return true if the given symbol index satisifies the requirements of `need`.
+ /// Return true if the given symbol index satisfies the requirements of `need`.
///
/// Returns false for any error.
///
/// Note: this function hasn't been fully tested and is likely to be incomplete.
- pub fn matches(&self, endian: Elf::Endian, index: usize, need: Option<&Version>) -> bool {
+ pub fn matches(&self, endian: Elf::Endian, index: usize, need: Option<&Version<'_>>) -> bool {
let version_index = self.version_index(endian, index);
let def = match self.version(version_index) {
Ok(def) => def,