diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-04-28 19:39:03 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-04-28 19:39:03 +0200 |
commit | b368a18a914a44fd74896b7b1ac7a2530b2bdcb3 (patch) | |
tree | 11a2a18e0b4a2bf5438c3e63c79ddf4bd901659c /src | |
parent | 9c46d94b30bce282a590f8a6dcbec4498f7e18b0 (diff) | |
download | elfload-b368a18a914a44fd74896b7b1ac7a2530b2bdcb3.tar.gz elfload-b368a18a914a44fd74896b7b1ac7a2530b2bdcb3.zip |
fix macro name
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 { |