@@ -261,13 +261,8 @@ impl PayloadStorage for RepositoryHandle {
261261 each_variant ! ( self , repo, { repo. iter_payload_digests( ) } )
262262 }
263263
264- async unsafe fn write_data (
265- & self ,
266- reader : Pin < Box < dyn BlobRead > > ,
267- ) -> Result < ( encoding:: Digest , u64 ) > {
268- // Safety: we are wrapping the same underlying unsafe function and
269- // so the same safety holds for our callers
270- unsafe { each_variant ! ( self , repo, { repo. write_data( reader) . await } ) }
264+ async fn write_data ( & self , reader : Pin < Box < dyn BlobRead > > ) -> Result < ( encoding:: Digest , u64 ) > {
265+ each_variant ! ( self , repo, { repo. write_data( reader) . await } )
271266 }
272267
273268 async fn open_payload (
@@ -436,13 +431,8 @@ impl PayloadStorage for Arc<RepositoryHandle> {
436431 each_variant ! ( & * * self , repo, { repo. iter_payload_digests( ) } )
437432 }
438433
439- async unsafe fn write_data (
440- & self ,
441- reader : Pin < Box < dyn BlobRead > > ,
442- ) -> Result < ( encoding:: Digest , u64 ) > {
443- // Safety: we are wrapping the same underlying unsafe function and
444- // so the same safety holds for our callers
445- unsafe { each_variant ! ( & * * self , repo, { repo. write_data( reader) . await } ) }
434+ async fn write_data ( & self , reader : Pin < Box < dyn BlobRead > > ) -> Result < ( encoding:: Digest , u64 ) > {
435+ each_variant ! ( & * * self , repo, { repo. write_data( reader) . await } )
446436 }
447437
448438 async fn open_payload (
0 commit comments