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 a19250e commit 92aa382Copy full SHA for 92aa382
src/fat/volume.rs
@@ -1171,16 +1171,11 @@ impl FatVolume {
1171
ctime: now,
1172
attributes: att,
1173
// point at our parent
1174
- cluster: match fat_type {
1175
- FatType::Fat16 => {
1176
- // On FAT16, indicate parent is root using Cluster(0)
1177
- if parent == ClusterId::ROOT_DIR {
1178
- ClusterId::EMPTY
1179
- } else {
1180
- parent
1181
- }
1182
1183
- FatType::Fat32 => parent,
+ cluster: if parent == ClusterId::ROOT_DIR {
+ // indicate parent is root using Cluster(0)
+ ClusterId::EMPTY
+ } else {
+ parent
1184
},
1185
size: 0,
1186
entry_block: new_dir_start_block,
0 commit comments