Skip to content

Commit

Permalink
chore: remove unnecessary lifetime annotations, release 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradHoeffner committed Oct 7, 2024
1 parent 002e101 commit ea42c92
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hdt"
version = "0.2.0"
version = "0.2.1"
repository = "https://github.com/konradhoeffner/hdt"
authors = ["Tim Baccaert <[email protected]>", "Konrad Höffner"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/containers/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self::Item> {
if self.i >= self.sequence.entries {
Expand Down
2 changes: 1 addition & 1 deletion src/triples/object_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self::Item> {
if self.pos_index > self.max_index {
Expand Down
2 changes: 1 addition & 1 deletion src/triples/predicate_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self::Item> {
if self.i >= self.occs {
Expand Down
2 changes: 1 addition & 1 deletion src/triples/predicate_object_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self::Item> {
if self.pos_index > self.max_index {
Expand Down
2 changes: 1 addition & 1 deletion src/triples/subject_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self::Item> {
Expand Down

0 comments on commit ea42c92

Please sign in to comment.