From ea42c92b5bb1db1ff8e8e494b33376a16d90490e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20H=C3=B6ffner?= Date: Mon, 7 Oct 2024 10:28:28 +0200 Subject: [PATCH] chore: remove unnecessary lifetime annotations, release 0.2.1 --- Cargo.toml | 2 +- src/containers/sequence.rs | 2 +- src/triples/object_iter.rs | 2 +- src/triples/predicate_iter.rs | 2 +- src/triples/predicate_object_iter.rs | 2 +- src/triples/subject_iter.rs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 17ca44d..d58e35c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hdt" -version = "0.2.0" +version = "0.2.1" repository = "https://github.com/konradhoeffner/hdt" authors = ["Tim Baccaert ", "Konrad Höffner"] license = "MIT" diff --git a/src/containers/sequence.rs b/src/containers/sequence.rs index 3589f7d..c975445 100644 --- a/src/containers/sequence.rs +++ b/src/containers/sequence.rs @@ -38,7 +38,7 @@ pub struct SequenceIter<'a> { i: usize, } -impl<'a> Iterator for SequenceIter<'a> { +impl Iterator for SequenceIter<'_> { type Item = usize; fn next(&mut self) -> Option { if self.i >= self.sequence.entries { diff --git a/src/triples/object_iter.rs b/src/triples/object_iter.rs index af95be4..95801fd 100644 --- a/src/triples/object_iter.rs +++ b/src/triples/object_iter.rs @@ -28,7 +28,7 @@ impl<'a> ObjectIter<'a> { } } -impl<'a> Iterator for ObjectIter<'a> { +impl Iterator for ObjectIter<'_> { type Item = TripleId; fn next(&mut self) -> Option { if self.pos_index > self.max_index { diff --git a/src/triples/predicate_iter.rs b/src/triples/predicate_iter.rs index 27f264b..e192c50 100644 --- a/src/triples/predicate_iter.rs +++ b/src/triples/predicate_iter.rs @@ -24,7 +24,7 @@ impl<'a> PredicateIter<'a> { } } -impl<'a> Iterator for PredicateIter<'a> { +impl Iterator for PredicateIter<'_> { type Item = TripleId; fn next(&mut self) -> Option { if self.i >= self.occs { diff --git a/src/triples/predicate_object_iter.rs b/src/triples/predicate_object_iter.rs index d7e8607..8c58f34 100644 --- a/src/triples/predicate_object_iter.rs +++ b/src/triples/predicate_object_iter.rs @@ -66,7 +66,7 @@ impl<'a> PredicateObjectIter<'a> { } } -impl<'a> Iterator for PredicateObjectIter<'a> { +impl Iterator for PredicateObjectIter<'_> { type Item = Id; fn next(&mut self) -> Option { if self.pos_index > self.max_index { diff --git a/src/triples/subject_iter.rs b/src/triples/subject_iter.rs index 742cddd..a3831bf 100644 --- a/src/triples/subject_iter.rs +++ b/src/triples/subject_iter.rs @@ -106,7 +106,7 @@ impl<'a> SubjectIter<'a> { } } -impl<'a> Iterator for SubjectIter<'a> { +impl Iterator for SubjectIter<'_> { type Item = TripleId; fn next(&mut self) -> Option {