Skip to content

Commit ef68ea1

Browse files
authored
Merge pull request #2092 from jugglerchris/remove_unneeded_mut
Fix a "variable does not need to be mutable" warning.
2 parents 2adf7ee + 92e374e commit ef68ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ where
333333
Ok(result) => result,
334334
Err(e) => {
335335
// Create a new error with path_str to help users see which files failed
336-
let mut err_msg = path_str.to_string() + &": ".to_string() + &e.to_string();
336+
let err_msg = path_str.to_string() + &": ".to_string() + &e.to_string();
337337
return Err(io::Error::new(e.kind(), err_msg));
338338
}
339339
};

0 commit comments

Comments
 (0)