Remove an unused mut.

This commit is contained in:
KAMADA Ken'ichi 2017-10-28 00:14:41 +09:00
parent 2fab18947a
commit 201f6887fd
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ pub struct Reader {
impl Reader {
/// Reads a JPEG or TIFF image and parses the Exif attributes in it.
/// If an error occurred, `exif::Error` is returned.
pub fn new<R>(mut reader: &mut R)
pub fn new<R>(reader: &mut R)
-> Result<Reader, Error> where R: io::BufRead {
let mut buf = Vec::new();
try!(reader.by_ref().take(4).read_to_end(&mut buf));