@@ -782,9 +782,6 @@ impl LocalFingerprint {
782
782
}
783
783
}
784
784
785
- #[ derive( Debug ) ]
786
- struct MtimeSlot ( Mutex < Option < FileTime > > ) ;
787
-
788
785
impl Fingerprint {
789
786
fn new ( ) -> Fingerprint {
790
787
Fingerprint {
@@ -1153,37 +1150,6 @@ impl hash::Hash for Fingerprint {
1153
1150
}
1154
1151
}
1155
1152
1156
- impl hash:: Hash for MtimeSlot {
1157
- fn hash < H : Hasher > ( & self , h : & mut H ) {
1158
- self . 0 . lock ( ) . unwrap ( ) . hash ( h)
1159
- }
1160
- }
1161
-
1162
- impl ser:: Serialize for MtimeSlot {
1163
- fn serialize < S > ( & self , s : S ) -> Result < S :: Ok , S :: Error >
1164
- where
1165
- S : ser:: Serializer ,
1166
- {
1167
- self . 0
1168
- . lock ( )
1169
- . unwrap ( )
1170
- . map ( |ft| ( ft. unix_seconds ( ) , ft. nanoseconds ( ) ) )
1171
- . serialize ( s)
1172
- }
1173
- }
1174
-
1175
- impl < ' de > de:: Deserialize < ' de > for MtimeSlot {
1176
- fn deserialize < D > ( d : D ) -> Result < MtimeSlot , D :: Error >
1177
- where
1178
- D : de:: Deserializer < ' de > ,
1179
- {
1180
- let kind: Option < ( i64 , u32 ) > = de:: Deserialize :: deserialize ( d) ?;
1181
- Ok ( MtimeSlot ( Mutex :: new (
1182
- kind. map ( |( s, n) | FileTime :: from_unix_time ( s, n) ) ,
1183
- ) ) )
1184
- }
1185
- }
1186
-
1187
1153
impl DepFingerprint {
1188
1154
fn new ( cx : & mut Context < ' _ , ' _ > , parent : & Unit , dep : & UnitDep ) -> CargoResult < DepFingerprint > {
1189
1155
let fingerprint = calculate ( cx, & dep. unit ) ?;
0 commit comments