From 2deb38a69c5e1e723a53730effd9fd2801c398d1 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 10 Apr 2018 22:35:59 +0200 Subject: [PATCH] Moved a method to the right trait implementation --- src/linux/mod.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/linux/mod.rs b/src/linux/mod.rs index b104ac4..ccb0f51 100644 --- a/src/linux/mod.rs +++ b/src/linux/mod.rs @@ -55,10 +55,6 @@ impl<'a> SegmentTrait for Segment<'a> { } } - fn id(&self) -> Option { - None - } - #[inline] fn stated_virtual_memory_address(&self) -> Svma { Svma(unsafe { @@ -153,6 +149,11 @@ impl<'a> SharedLibraryTrait for SharedLibrary<'a> { self.name } + #[inline] + fn id(&self) -> Option { + None + } + #[inline] fn segments(&self) -> Self::SegmentIter { SegmentIter { inner: self.headers.iter() }