@@ -149,7 +149,7 @@ impl StorageService {
149
149
Ok ( ref m) => Some (
150
150
m. modified ( ) ?
151
151
. duration_since ( SystemTime :: UNIX_EPOCH )
152
- . map_err ( |_| io:: Error :: new ( io :: ErrorKind :: Other , "clock went backwards?!" ) ) ?
152
+ . map_err ( |_| io:: Error :: other ( "clock went backwards?!" ) ) ?
153
153
. as_millis ( ) ,
154
154
) ,
155
155
@@ -160,7 +160,7 @@ impl StorageService {
160
160
Ok ( ref m) => Some (
161
161
m. created ( ) ?
162
162
. duration_since ( SystemTime :: UNIX_EPOCH )
163
- . map_err ( |_| io:: Error :: new ( io :: ErrorKind :: Other , "clock went backwards?!" ) ) ?
163
+ . map_err ( |_| io:: Error :: other ( "clock went backwards?!" ) ) ?
164
164
. as_millis ( ) ,
165
165
) ,
166
166
@@ -191,7 +191,7 @@ impl StorageService {
191
191
Ok ( ref m) => Some (
192
192
m. modified ( ) ?
193
193
. duration_since ( SystemTime :: UNIX_EPOCH )
194
- . map_err ( |_| io:: Error :: new ( io :: ErrorKind :: Other , "clock went backwards?!" ) ) ?
194
+ . map_err ( |_| io:: Error :: other ( "clock went backwards?!" ) ) ?
195
195
. as_millis ( ) ,
196
196
) ,
197
197
@@ -202,7 +202,7 @@ impl StorageService {
202
202
Ok ( ref m) => Some (
203
203
m. created ( ) ?
204
204
. duration_since ( SystemTime :: UNIX_EPOCH )
205
- . map_err ( |_| io:: Error :: new ( io :: ErrorKind :: Other , "clock went backwards?!" ) ) ?
205
+ . map_err ( |_| io:: Error :: other ( "clock went backwards?!" ) ) ?
206
206
. as_millis ( ) ,
207
207
) ,
208
208
@@ -460,7 +460,7 @@ impl remi::StorageService for StorageService {
460
460
Ok ( sys) => Some (
461
461
sys. created ( ) ?
462
462
. duration_since ( SystemTime :: UNIX_EPOCH )
463
- . map_err ( |_| io:: Error :: new ( io :: ErrorKind :: Other , "clock went backwards?!" ) ) ?
463
+ . map_err ( |_| io:: Error :: other ( "clock went backwards?!" ) ) ?
464
464
. as_millis ( ) ,
465
465
) ,
466
466
0 commit comments