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 a6cc6cd commit 567aa09Copy full SHA for 567aa09
src/fat/volume.rs
@@ -1297,16 +1297,11 @@ impl FatVolume {
1297
ctime: now,
1298
attributes: att,
1299
// point at our parent
1300
- cluster: match fat_type {
1301
- FatType::Fat16 => {
1302
- // On FAT16, indicate parent is root using Cluster(0)
1303
- if parent == ClusterId::ROOT_DIR {
1304
- ClusterId::EMPTY
1305
- } else {
1306
- parent
1307
- }
1308
1309
- FatType::Fat32 => parent,
+ cluster: if parent == ClusterId::ROOT_DIR {
+ // indicate parent is root using Cluster(0)
+ ClusterId::EMPTY
+ } else {
+ parent
1310
},
1311
size: 0,
1312
entry_block: new_dir_start_block,
0 commit comments