From 201f6887fd5da9f8597ce2244adb03e1aaaa460a Mon Sep 17 00:00:00 2001 From: KAMADA Ken'ichi Date: Sat, 28 Oct 2017 00:14:41 +0900 Subject: [PATCH] Remove an unused mut. --- src/reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader.rs b/src/reader.rs index 8be1da4..af399e8 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -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(mut reader: &mut R) + pub fn new(reader: &mut R) -> Result where R: io::BufRead { let mut buf = Vec::new(); try!(reader.by_ref().take(4).read_to_end(&mut buf));