aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2022-04-28 19:39:03 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2022-04-28 19:39:03 +0200
commitb368a18a914a44fd74896b7b1ac7a2530b2bdcb3 (patch)
tree11a2a18e0b4a2bf5438c3e63c79ddf4bd901659c
parent9c46d94b30bce282a590f8a6dcbec4498f7e18b0 (diff)
downloadelfload-b368a18a914a44fd74896b7b1ac7a2530b2bdcb3.tar.gz
elfload-b368a18a914a44fd74896b7b1ac7a2530b2bdcb3.zip
fix macro name
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f182b41..d3f5b4e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -20,7 +20,7 @@ trait FromEndian: Sized {
fn from_be_bytes<B: AsRef<[u8]>>(bytes: B) -> Option<Self>;
}
-macro_rules! impl_endian_read {
+macro_rules! impl_from_endian {
($ty: ty) => {
impl FromEndian for $ty {
fn from_le_bytes<B: AsRef<[u8]>>(bytes: B) -> Option<Self> {
@@ -44,9 +44,9 @@ macro_rules! impl_endian_read {
};
}
-impl_endian_read!(u16);
-impl_endian_read!(u32);
-impl_endian_read!(u64);
+impl_from_endian!(u16);
+impl_from_endian!(u32);
+impl_from_endian!(u64);
#[derive(Debug, Clone, Copy)]
enum Endian {