summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2014-12-07 15:51:25 -0500
committerAndrew Gallant <jamslam@gmail.com>2014-12-07 15:51:25 -0500
commit3372edb35f0b58781a74b2357cad73d50998b023 (patch)
treec05c975f1f0e6ebfab15994f3293566ce87903c4
parent8e4842f0257f710b01ed802c9c239acb1e1c431c (diff)
Unnecessary mutability.
-rw-r--r--src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 52eeb72..10634f1 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -164,7 +164,7 @@ impl Config {
pub fn index_files(&self)
-> io::IoResult<Option<(csv::Reader<io::File>, io::File)>> {
- let (mut csv_file, mut idx_file) = match (&self.path, &self.idx_path) {
+ let (csv_file, idx_file) = match (&self.path, &self.idx_path) {
(&None, &None) => return Ok(None),
(&None, &Some(ref p)) => return Err(io::IoError {
kind: io::OtherIoError,