@@ -66,7 +66,7 @@ use crate::{Block, BlockDevice, BlockIdx, Error};
66
66
mod test {
67
67
68
68
use super :: * ;
69
- use crate :: { Attributes , BlockIdx , Cluster , DirEntry , ShortFileName , Timestamp } ;
69
+ use crate :: { Attributes , BlockIdx , ClusterId , DirEntry , ShortFileName , Timestamp } ;
70
70
71
71
fn parse ( input : & str ) -> Vec < u8 > {
72
72
let mut output = Vec :: new ( ) ;
@@ -143,7 +143,7 @@ mod test {
143
143
mtime : Timestamp :: from_calendar ( 2015 , 11 , 21 , 19 , 35 , 18 ) . unwrap ( ) ,
144
144
ctime : Timestamp :: from_calendar ( 2015 , 11 , 21 , 19 , 35 , 18 ) . unwrap ( ) ,
145
145
attributes : Attributes :: create_from_fat ( Attributes :: VOLUME ) ,
146
- cluster : Cluster ( 0 ) ,
146
+ cluster : ClusterId ( 0 ) ,
147
147
size : 0 ,
148
148
entry_block : BlockIdx ( 0 ) ,
149
149
entry_offset : 0 ,
@@ -161,7 +161,7 @@ mod test {
161
161
mtime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 54 ) . unwrap ( ) ,
162
162
ctime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 54 ) . unwrap ( ) ,
163
163
attributes : Attributes :: create_from_fat ( Attributes :: DIRECTORY ) ,
164
- cluster : Cluster ( 3 ) ,
164
+ cluster : ClusterId ( 3 ) ,
165
165
size : 0 ,
166
166
entry_block : BlockIdx ( 0 ) ,
167
167
entry_offset : 0 ,
@@ -186,7 +186,7 @@ mod test {
186
186
mtime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 34 ) . unwrap ( ) ,
187
187
ctime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 34 ) . unwrap ( ) ,
188
188
attributes : Attributes :: create_from_fat ( Attributes :: ARCHIVE ) ,
189
- cluster : Cluster ( 9 ) ,
189
+ cluster : ClusterId ( 9 ) ,
190
190
size : 11120 ,
191
191
entry_block : BlockIdx ( 0 ) ,
192
192
entry_offset : 0 ,
@@ -203,7 +203,7 @@ mod test {
203
203
mtime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 30 ) . unwrap ( ) ,
204
204
ctime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 30 ) . unwrap ( ) ,
205
205
attributes : Attributes :: create_from_fat ( Attributes :: ARCHIVE ) ,
206
- cluster : Cluster ( 5 ) ,
206
+ cluster : ClusterId ( 5 ) ,
207
207
size : 18693 ,
208
208
entry_block : BlockIdx ( 0 ) ,
209
209
entry_offset : 0 ,
@@ -228,7 +228,7 @@ mod test {
228
228
mtime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 34 ) . unwrap ( ) ,
229
229
ctime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 34 ) . unwrap ( ) ,
230
230
attributes : Attributes :: create_from_fat ( Attributes :: ARCHIVE ) ,
231
- cluster : Cluster ( 8 ) ,
231
+ cluster : ClusterId ( 8 ) ,
232
232
size : 1494 ,
233
233
entry_block : BlockIdx ( 0 ) ,
234
234
entry_offset : 0 ,
@@ -253,7 +253,7 @@ mod test {
253
253
mtime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 36 ) . unwrap ( ) ,
254
254
ctime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 36 ) . unwrap ( ) ,
255
255
attributes : Attributes :: create_from_fat ( Attributes :: ARCHIVE ) ,
256
- cluster : Cluster ( 15 ) ,
256
+ cluster : ClusterId ( 15 ) ,
257
257
size : 12108 ,
258
258
entry_block : BlockIdx ( 0 ) ,
259
259
entry_offset : 0 ,
0 commit comments