Skip to content

Commit 6042ac4

Browse files
thejpstereldruin
authored andcommitted
Removed unused field.
It was a rustc warning and it seems to work without. If we need it in future, we can add it back.
1 parent f3e8e21 commit 6042ac4

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/filesystem/directory.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ pub struct DirEntry {
3333
pub struct Directory {
3434
/// The starting point of the directory listing.
3535
pub(crate) cluster: Cluster,
36-
/// Dir Entry of this directory, None for the root directory
37-
pub(crate) entry: Option<DirEntry>,
3836
}
3937

4038
impl DirEntry {

src/volume_mgr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ where
172172
self.open_dirs[open_dirs_row] = (volume.idx, Cluster::ROOT_DIR);
173173
Ok(Directory {
174174
cluster: Cluster::ROOT_DIR,
175-
entry: None,
176175
})
177176
}
178177

@@ -217,7 +216,6 @@ where
217216
self.open_dirs[open_dirs_row] = (volume.idx, dir_entry.cluster);
218217
Ok(Directory {
219218
cluster: dir_entry.cluster,
220-
entry: Some(dir_entry),
221219
})
222220
}
223221

0 commit comments

Comments
 (0)