diff options
author | David Tulig <david.tulig@gmail.com> | 2016-05-30 16:04:03 -0500 |
---|---|---|
committer | David Tulig <david.tulig@gmail.com> | 2016-05-30 16:04:03 -0500 |
commit | cfdedf1881fcdcd1026569c702c37c37c444b213 (patch) | |
tree | 5c9033e73362f5754ac09b9e0faf57000ae3190c /src | |
parent | e3ce85194a6fffc758428c9ad26b8f01e4054c21 (diff) | |
download | byteorder-cfdedf1881fcdcd1026569c702c37c37c444b213.tar.gz |
Replacing std size_of with core size_of.
This allows byteorder to be used in a no_std context.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -300,7 +300,7 @@ pub type NativeEndian = BigEndian; macro_rules! read_num_bytes { ($ty:ty, $size:expr, $src:expr, $which:ident) => ({ - assert!($size == ::std::mem::size_of::<$ty>()); + assert!($size == ::core::mem::size_of::<$ty>()); assert!($size <= $src.len()); let mut data: $ty = 0; unsafe { |