@@ -66,7 +66,7 @@ use crate::{Block, BlockDevice, BlockIdx, Error};
6666mod test {
6767
6868 use super :: * ;
69- use crate :: { Attributes , BlockIdx , Cluster , DirEntry , ShortFileName , Timestamp } ;
69+ use crate :: { Attributes , BlockIdx , ClusterId , DirEntry , ShortFileName , Timestamp } ;
7070
7171 fn parse ( input : & str ) -> Vec < u8 > {
7272 let mut output = Vec :: new ( ) ;
@@ -143,7 +143,7 @@ mod test {
143143 mtime : Timestamp :: from_calendar ( 2015 , 11 , 21 , 19 , 35 , 18 ) . unwrap ( ) ,
144144 ctime : Timestamp :: from_calendar ( 2015 , 11 , 21 , 19 , 35 , 18 ) . unwrap ( ) ,
145145 attributes : Attributes :: create_from_fat ( Attributes :: VOLUME ) ,
146- cluster : Cluster ( 0 ) ,
146+ cluster : ClusterId ( 0 ) ,
147147 size : 0 ,
148148 entry_block : BlockIdx ( 0 ) ,
149149 entry_offset : 0 ,
@@ -161,7 +161,7 @@ mod test {
161161 mtime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 54 ) . unwrap ( ) ,
162162 ctime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 54 ) . unwrap ( ) ,
163163 attributes : Attributes :: create_from_fat ( Attributes :: DIRECTORY ) ,
164- cluster : Cluster ( 3 ) ,
164+ cluster : ClusterId ( 3 ) ,
165165 size : 0 ,
166166 entry_block : BlockIdx ( 0 ) ,
167167 entry_offset : 0 ,
@@ -186,7 +186,7 @@ mod test {
186186 mtime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 34 ) . unwrap ( ) ,
187187 ctime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 34 ) . unwrap ( ) ,
188188 attributes : Attributes :: create_from_fat ( Attributes :: ARCHIVE ) ,
189- cluster : Cluster ( 9 ) ,
189+ cluster : ClusterId ( 9 ) ,
190190 size : 11120 ,
191191 entry_block : BlockIdx ( 0 ) ,
192192 entry_offset : 0 ,
@@ -203,7 +203,7 @@ mod test {
203203 mtime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 30 ) . unwrap ( ) ,
204204 ctime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 30 ) . unwrap ( ) ,
205205 attributes : Attributes :: create_from_fat ( Attributes :: ARCHIVE ) ,
206- cluster : Cluster ( 5 ) ,
206+ cluster : ClusterId ( 5 ) ,
207207 size : 18693 ,
208208 entry_block : BlockIdx ( 0 ) ,
209209 entry_offset : 0 ,
@@ -228,7 +228,7 @@ mod test {
228228 mtime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 34 ) . unwrap ( ) ,
229229 ctime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 34 ) . unwrap ( ) ,
230230 attributes : Attributes :: create_from_fat ( Attributes :: ARCHIVE ) ,
231- cluster : Cluster ( 8 ) ,
231+ cluster : ClusterId ( 8 ) ,
232232 size : 1494 ,
233233 entry_block : BlockIdx ( 0 ) ,
234234 entry_offset : 0 ,
@@ -253,7 +253,7 @@ mod test {
253253 mtime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 36 ) . unwrap ( ) ,
254254 ctime : Timestamp :: from_calendar ( 2016 , 3 , 1 , 19 , 56 , 36 ) . unwrap ( ) ,
255255 attributes : Attributes :: create_from_fat ( Attributes :: ARCHIVE ) ,
256- cluster : Cluster ( 15 ) ,
256+ cluster : ClusterId ( 15 ) ,
257257 size : 12108 ,
258258 entry_block : BlockIdx ( 0 ) ,
259259 entry_offset : 0 ,
0 commit comments