From bb1092306f1917ec461e660244db3084286f3ca7 Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Wed, 23 Aug 2017 19:52:20 -0400 Subject: [PATCH] Make `entries` binding immutable for &mut type It appears that the lint on nightly is more aggressive and it correctly identifies that the entries binding itself is not mutated even though the type is (and needs to be) &mut. --- src/bin/render-readmes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/render-readmes.rs b/src/bin/render-readmes.rs index 00000dc3843..ab332e64a07 100644 --- a/src/bin/render-readmes.rs +++ b/src/bin/render-readmes.rs @@ -212,7 +212,7 @@ fn get_readme(config: &Config, version: &EncodableVersion) -> Option { /// Search an entry by its path in a Tar archive. fn find_file_by_path( - mut entries: &mut tar::Entries, + entries: &mut tar::Entries, path: &Path, version: &EncodableVersion, ) -> String {