From f72da63d2db75db87ce939491a017daf4776abe4 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Thu, 11 Jul 2019 16:26:57 +0200 Subject: [PATCH] Fix unused mutability --- src/dir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dir.rs b/src/dir.rs index 329193f..620ef20 100644 --- a/src/dir.rs +++ b/src/dir.rs @@ -240,7 +240,7 @@ impl<'a, T: ReadWriteSeek + 'a> Dir<'a, T> { // create entry in parent directory let sfn_entry = self.create_sfn_entry(short_name, FileAttributes::DIRECTORY, Some(cluster)); let entry = self.write_entry(name, sfn_entry)?; - let mut dir = entry.to_dir(); + let dir = entry.to_dir(); // create special entries "." and ".." let dot_sfn = ShortNameGenerator::new(".").generate().unwrap(); let sfn_entry = self.create_sfn_entry(dot_sfn, FileAttributes::DIRECTORY, entry.first_cluster());