Skip to content

Commit

Permalink
Merge pull request #2092 from jugglerchris/remove_unneeded_mut
Browse files Browse the repository at this point in the history
Fix a "variable does not need to be mutable" warning.
  • Loading branch information
nrc authored Oct 27, 2017
2 parents 2adf7ee + 92e374e commit ef68ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
};
Expand Down

0 comments on commit ef68ea1

Please sign in to comment.