11#![ doc = include_str ! ( "../README.md" ) ]
22
3+ use canon_json:: CanonicalFormatter ;
34use cap_std:: fs:: { Dir , DirBuilderExt } ;
45use cap_std_ext:: cap_tempfile;
56use cap_std_ext:: dirext:: CapStdExtDirExt ;
@@ -9,7 +10,6 @@ use oci_spec::image::{
910 self as oci_image, Descriptor , Digest , ImageConfiguration , ImageIndex , ImageManifest ,
1011 Sha256Digest ,
1112} ;
12- use olpc_cjson:: CanonicalFormatter ;
1313use openssl:: hash:: { Hasher , MessageDigest } ;
1414use serde:: { Deserialize , Serialize } ;
1515use std:: collections:: { HashMap , HashSet } ;
@@ -145,7 +145,7 @@ pub struct BlobWriter<'a> {
145145 size : u64 ,
146146}
147147
148- impl < ' a > Debug for BlobWriter < ' a > {
148+ impl Debug for BlobWriter < ' _ > {
149149 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
150150 f. debug_struct ( "BlobWriter" )
151151 . field ( "target" , & self . target )
@@ -698,7 +698,7 @@ impl<'a> BlobWriter<'a> {
698698 }
699699}
700700
701- impl < ' a > std:: io:: Write for BlobWriter < ' a > {
701+ impl std:: io:: Write for BlobWriter < ' _ > {
702702 fn write ( & mut self , srcbuf : & [ u8 ] ) -> std:: io:: Result < usize > {
703703 self . hash . update ( srcbuf) ?;
704704 self . target
@@ -735,7 +735,7 @@ impl<'a> GzipLayerWriter<'a> {
735735 }
736736}
737737
738- impl < ' a > std:: io:: Write for GzipLayerWriter < ' a > {
738+ impl std:: io:: Write for GzipLayerWriter < ' _ > {
739739 fn write ( & mut self , data : & [ u8 ] ) -> std:: io:: Result < usize > {
740740 self . 0 . write ( data)
741741 }
@@ -781,7 +781,7 @@ impl<'a> ZstdLayerWriter<'a> {
781781}
782782
783783#[ cfg( feature = "zstd" ) ]
784- impl < ' a > std:: io:: Write for ZstdLayerWriter < ' a > {
784+ impl std:: io:: Write for ZstdLayerWriter < ' _ > {
785785 fn write ( & mut self , data : & [ u8 ] ) -> std:: io:: Result < usize > {
786786 self . 0 . write ( data)
787787 }
0 commit comments