From c17f16fdf2ba85e6c33dcf8444a8a3efd66031aa Mon Sep 17 00:00:00 2001
From: Felix Kronlage <kronlage@bytemine.net>
Date: Tue, 7 Jul 2015 17:38:12 +0200
Subject: [PATCH] no need to be marked mutable

allows code to compile with nightly again.
---
 src/buf/mod.rs   | 4 ++--
 src/str/bytes.rs | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/buf/mod.rs b/src/buf/mod.rs
index 76a825e..be02ee1 100644
--- a/src/buf/mod.rs
+++ b/src/buf/mod.rs
@@ -48,7 +48,7 @@ pub trait Buf {
         let len = cmp::min(dst.len(), self.remaining());
 
         while off < len {
-            let mut cnt;
+            let cnt;
 
             unsafe {
                 let src = self.bytes();
@@ -127,7 +127,7 @@ pub trait MutBuf : Sized {
         let len = cmp::min(src.len(), self.remaining());
 
         while off < len {
-            let mut cnt;
+            let cnt;
 
             unsafe {
                 let dst = self.mut_bytes();
diff --git a/src/str/bytes.rs b/src/str/bytes.rs
index 178199a..a0bef44 100644
--- a/src/str/bytes.rs
+++ b/src/str/bytes.rs
@@ -21,8 +21,8 @@ impl Bytes {
     pub fn of<B: ByteStr>(bytes: B) -> Bytes {
         unsafe {
             if inline::<B>() {
-                let mut vtable;
-                let mut data;
+                let vtable;
+                let data;
 
                 {
                     let obj: &ByteStrPriv = &bytes;
@@ -78,7 +78,7 @@ impl Bytes {
         if TypeId::of::<B>() == self.obj().get_type_id() {
             unsafe {
                 // Underlying ByteStr value is of the correct type. Unwrap it
-                let mut ret;
+                let ret;
 
                 if inline::<B>() {
                     // The value is inline, read directly from the pointer
@@ -206,7 +206,7 @@ impl<'a> Source for &'a Bytes {
         let mut res = 0;
 
         while src.has_remaining() && dst.has_remaining() {
-            let mut l;
+            let l;
 
             {
                 let s = src.bytes();
-- 
GitLab