aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2017-07-08 21:40:22 -0400
committerAndrew Gallant <jamslam@gmail.com>2017-07-09 14:26:40 -0400
commitef6d19e8369a4016fe797b15ad076274f9a24664 (patch)
tree88e73069823d8b846adf85942cb783a0fb0aa2bc /src
parent39aee20b144a69c196bde258f70bf7c4e9b9c4c7 (diff)
downloadbyteorder-ef6d19e8369a4016fe797b15ad076274f9a24664.tar.gz
fix formatting
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7bfa45b..4142b1c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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