We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb665b commit d904261Copy full SHA for d904261
src/fat/volume.rs
@@ -1186,16 +1186,11 @@ impl FatVolume {
1186
ctime: now,
1187
attributes: att,
1188
// point at our parent
1189
- cluster: match fat_type {
1190
- FatType::Fat16 => {
1191
- // On FAT16, indicate parent is root using Cluster(0)
1192
- if parent == ClusterId::ROOT_DIR {
1193
- ClusterId::EMPTY
1194
- } else {
1195
- parent
1196
- }
1197
1198
- FatType::Fat32 => parent,
+ cluster: if parent == ClusterId::ROOT_DIR {
+ // indicate parent is root using Cluster(0)
+ ClusterId::EMPTY
+ } else {
+ parent
1199
},
1200
size: 0,
1201
entry_block: new_dir_start_block,
0 commit comments