aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-04-01 10:58:12 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-04-01 10:58:12 -0400
commite00c2331f66b7b0909d4484fba8c76054ab843a5 (patch)
tree91d1c8b7e71073a753713fba93b2a037a821eaa3 /src
parent46f1664cac87125a4dfdea32886fd1127e8f1bc4 (diff)
downloadbyteorder-e00c2331f66b7b0909d4484fba8c76054ab843a5.tar.gz
style: remove unnecessary mut
Diffstat (limited to 'src')
-rw-r--r--src/io.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io.rs b/src/io.rs
index 0e32bf0..e57510d 100644
--- a/src/io.rs
+++ b/src/io.rs
@@ -623,7 +623,7 @@ pub trait ReadBytesExt: io::Read {
dst: &mut [u128],
) -> Result<()> {
{
- let mut buf = unsafe { slice_to_u8_mut(dst) };
+ let buf = unsafe { slice_to_u8_mut(dst) };
try!(self.read_exact(buf));
}
T::from_slice_u128(dst);
@@ -773,7 +773,7 @@ pub trait ReadBytesExt: io::Read {
dst: &mut [i128],
) -> Result<()> {
{
- let mut buf = unsafe { slice_to_u8_mut(dst) };
+ let buf = unsafe { slice_to_u8_mut(dst) };
try!(self.read_exact(buf));
}
T::from_slice_i128(dst);