Skip to content

Commit

Permalink
remove unneeded lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 3, 2023
1 parent 3c003c6 commit cccc79b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions capnp/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ impl FieldList {
}
}

impl<'a> IndexMove<u16, Field> for FieldList {
impl IndexMove<u16, Field> for FieldList {
fn index_move(&self, index: u16) -> Field {
self.get(index)
}
}

impl<'a> ::core::iter::IntoIterator for FieldList {
impl ::core::iter::IntoIterator for FieldList {
type Item = Field;
type IntoIter = ShortListIter<FieldList, Self::Item>;

Expand Down Expand Up @@ -216,13 +216,13 @@ impl FieldSubset {
}
}

impl<'a> IndexMove<u16, Field> for FieldSubset {
impl IndexMove<u16, Field> for FieldSubset {
fn index_move(&self, index: u16) -> Field {
self.get(index)
}
}

impl<'a> ::core::iter::IntoIterator for FieldSubset {
impl ::core::iter::IntoIterator for FieldSubset {
type Item = Field;
type IntoIter = ShortListIter<FieldSubset, Self::Item>;

Expand Down

0 comments on commit cccc79b

Please sign in to comment.