@@ -267,7 +267,7 @@ mod tests {
267267 // Use known store names that will be preserved
268268 ObjectStoreError :: Generic {
269269 store: "S3" ,
270- source: Box :: new( std:: io:: Error :: new ( ErrorKind :: Other , "generic error" ) ) ,
270+ source: Box :: new( std:: io:: Error :: other ( "generic error" ) ) ,
271271 } ,
272272 ObjectStoreError :: NotFound {
273273 path: "test/path" . to_string( ) ,
@@ -279,14 +279,14 @@ mod tests {
279279 } ,
280280 ObjectStoreError :: Precondition {
281281 path: "precondition/path" . to_string( ) ,
282- source: Box :: new( std:: io:: Error :: new ( ErrorKind :: Other , "precondition failed" ) ) ,
282+ source: Box :: new( std:: io:: Error :: other ( "precondition failed" ) ) ,
283283 } ,
284284 ObjectStoreError :: NotSupported {
285285 source: Box :: new( std:: io:: Error :: new( ErrorKind :: Unsupported , "not supported" ) ) ,
286286 } ,
287287 ObjectStoreError :: NotModified {
288288 path: "not/modified" . to_string( ) ,
289- source: Box :: new( std:: io:: Error :: new ( ErrorKind :: Other , "not modified" ) ) ,
289+ source: Box :: new( std:: io:: Error :: other ( "not modified" ) ) ,
290290 } ,
291291 ObjectStoreError :: NotImplemented ,
292292 ObjectStoreError :: PermissionDenied {
@@ -298,7 +298,7 @@ mod tests {
298298 } ,
299299 ObjectStoreError :: Unauthenticated {
300300 path: "auth/path" . to_string( ) ,
301- source: Box :: new( std:: io:: Error :: new ( ErrorKind :: Other , "unauthenticated" ) ) ,
301+ source: Box :: new( std:: io:: Error :: other ( "unauthenticated" ) ) ,
302302 } ,
303303 ObjectStoreError :: UnknownConfigurationKey {
304304 key: "unknown_key" . to_string( ) ,
0 commit comments