Skip to content
Permalink
Browse files

cfg(target_endian = little)

  • Loading branch information...
ry committed Mar 15, 2019
1 parent c36b72c commit df2fd415830c509c47283d72af8b68c142f8145a
Showing with 1 addition and 2 deletions.
  1. +1 −2 core/http_bench.rs
@@ -84,14 +84,13 @@ fn test_record_from() {
};
let expected = r.clone();
let buf: Buf = r.into();
// TODO How do only do this on little endian?
#[cfg(target_endian = "little")]
assert_eq!(
buf,
vec![1u8, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0].into_boxed_slice()
);
let actual = Record::from(buf);
assert_eq!(actual, expected);

// TODO test From<&[u8]> for Record
}

0 comments on commit df2fd41

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.