From 92e374e778ac6c1b71658e98da8aedabbf454672 Mon Sep 17 00:00:00 2001 From: Chris Emerson Date: Fri, 27 Oct 2017 22:57:32 +0100 Subject: [PATCH] Fix a "variable does not need to be mutable" warning. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c8045747bfb..a86aa9e5bdd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -333,7 +333,7 @@ where Ok(result) => result, Err(e) => { // Create a new error with path_str to help users see which files failed - let mut err_msg = path_str.to_string() + &": ".to_string() + &e.to_string(); + let err_msg = path_str.to_string() + &": ".to_string() + &e.to_string(); return Err(io::Error::new(e.kind(), err_msg)); } };