diff options
author | Andrew Gallant <jamslam@gmail.com> | 2017-07-08 21:40:22 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-07-09 14:26:40 -0400 |
commit | ef6d19e8369a4016fe797b15ad076274f9a24664 (patch) | |
tree | 88e73069823d8b846adf85942cb783a0fb0aa2bc /src | |
parent | 39aee20b144a69c196bde258f70bf7c4e9b9c4c7 (diff) | |
download | byteorder-ef6d19e8369a4016fe797b15ad076274f9a24664.tar.gz |
fix formatting
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -142,7 +142,8 @@ fn pack_size128(n: u128) -> usize { } mod private { - /// Sealed stops crates other than byteorder from implementing any traits that use it. + /// Sealed stops crates other than byteorder from implementing any traits + /// that use it. pub trait Sealed{} impl Sealed for super::LittleEndian {} impl Sealed for super::BigEndian {} @@ -181,7 +182,9 @@ mod private { /// assert_eq!(-50_000, BigEndian::read_i16(&buf)); /// ``` pub trait ByteOrder - : Clone + Copy + Debug + Default + Eq + Hash + Ord + PartialEq + PartialOrd + private::Sealed { + : Clone + Copy + Debug + Default + Eq + Hash + Ord + PartialEq + PartialOrd + + private::Sealed +{ /// Reads an unsigned 16 bit integer from `buf`. /// /// # Panics @@ -561,8 +564,6 @@ pub trait ByteOrder Self::read_u64v(unsafe{ transmute(dst) }, buf); } - - /// Writes an unsigned 16 bit integer `n` to `buf`. /// /// # Panics |