summaryrefslogtreecommitdiff
path: root/src/elf.rs
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-08 11:00:51 -0500
committerpommicket <pommicket@gmail.com>2022-11-08 11:00:51 -0500
commite9a14c133f5fcb1f9b68e166e397782bb3de51d8 (patch)
tree517d40e96ff8b8487f339c8dcfe100d9bf801fd5 /src/elf.rs
parente02ed40851251064e907b91eec7cea6b89d3c186 (diff)
in theory this should be working but it's not
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 {