mirror of
https://github.com/rui314/mold.git
synced 2026-11-09 04:49:33 -10:00
a couple more Self's
This commit is contained in:
1 parent
3ca1cb6579
commit
3bf748a8fd
1 file changed
+6
-6
+6
-6
@@ -999,16 +999,16 @@ impl<E: Layout> Iterator for RelocationIter<'_, E> {
|
||||
#[inline(always)]
|
||||
fn next(&mut self) -> Option<ElfRel<E>> {
|
||||
match self {
|
||||
RelocationIter::Ordinary(iter) => iter.next(),
|
||||
RelocationIter::Crel(iter) => iter.next(),
|
||||
Self::Ordinary(iter) => iter.next(),
|
||||
Self::Crel(iter) => iter.next(),
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn size_hint(&self) -> (usize, Option<usize>) {
|
||||
match self {
|
||||
RelocationIter::Ordinary(iter) => iter.size_hint(),
|
||||
RelocationIter::Crel(iter) => iter.size_hint(),
|
||||
Self::Ordinary(iter) => iter.size_hint(),
|
||||
Self::Crel(iter) => iter.size_hint(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1018,8 +1018,8 @@ impl<E: Layout> Iterator for RelocationIter<'_, E> {
|
||||
F: FnMut(B, ElfRel<E>) -> B,
|
||||
{
|
||||
match self {
|
||||
RelocationIter::Ordinary(iter) => iter.fold(init, f),
|
||||
RelocationIter::Crel(iter) => iter.fold(init, f),
|
||||
Self::Ordinary(iter) => iter.fold(init, f),
|
||||
Self::Crel(iter) => iter.fold(init, f),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user