summaryrefslogtreecommitdiff
path: root/src/elf.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/elf.rs')
-rw-r--r--src/elf.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/elf.rs b/src/elf.rs
index e9b3c98..0df0896 100644
--- a/src/elf.rs
+++ b/src/elf.rs
@@ -421,14 +421,14 @@ impl RelType {
}
}
- pub fn to_x86_u8(self) -> Option<u8> {
+ pub fn to_x86_u8(self) -> u8 {
use RelType::*;
- Some(match self {
+ match self {
Direct32 => 1,
Pc32 => 2,
Other(x) => x,
- })
- }
+ }
+ }
}
pub struct Relocation {