Skip to content

Commit

Permalink
Moved a method to the right trait implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Apr 10, 2018
1 parent 1175448 commit 2deb38a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ impl<'a> SegmentTrait for Segment<'a> {
}
}

fn id(&self) -> Option<SharedLibraryId> {
None
}

#[inline]
fn stated_virtual_memory_address(&self) -> Svma {
Svma(unsafe {
Expand Down Expand Up @@ -153,6 +149,11 @@ impl<'a> SharedLibraryTrait for SharedLibrary<'a> {
self.name
}

#[inline]
fn id(&self) -> Option<SharedLibraryId> {
None
}

#[inline]
fn segments(&self) -> Self::SegmentIter {
SegmentIter { inner: self.headers.iter() }
Expand Down

0 comments on commit 2deb38a

Please sign in to comment.