@@ -127,7 +127,7 @@ impl Blobs {
127
127
. await
128
128
}
129
129
130
- pub fn add_slice ( & self , data : impl AsRef < [ u8 ] > ) -> AddProgress {
130
+ pub fn add_slice ( & self , data : impl AsRef < [ u8 ] > ) -> AddProgress < ' _ > {
131
131
let options = ImportBytesRequest {
132
132
data : Bytes :: copy_from_slice ( data. as_ref ( ) ) ,
133
133
format : crate :: BlobFormat :: Raw ,
@@ -136,7 +136,7 @@ impl Blobs {
136
136
self . add_bytes_impl ( options)
137
137
}
138
138
139
- pub fn add_bytes ( & self , data : impl Into < bytes:: Bytes > ) -> AddProgress {
139
+ pub fn add_bytes ( & self , data : impl Into < bytes:: Bytes > ) -> AddProgress < ' _ > {
140
140
let options = ImportBytesRequest {
141
141
data : data. into ( ) ,
142
142
format : crate :: BlobFormat :: Raw ,
@@ -145,7 +145,7 @@ impl Blobs {
145
145
self . add_bytes_impl ( options)
146
146
}
147
147
148
- pub fn add_bytes_with_opts ( & self , options : impl Into < AddBytesOptions > ) -> AddProgress {
148
+ pub fn add_bytes_with_opts ( & self , options : impl Into < AddBytesOptions > ) -> AddProgress < ' _ > {
149
149
let options = options. into ( ) ;
150
150
let request = ImportBytesRequest {
151
151
data : options. data ,
@@ -155,7 +155,7 @@ impl Blobs {
155
155
self . add_bytes_impl ( request)
156
156
}
157
157
158
- fn add_bytes_impl ( & self , options : ImportBytesRequest ) -> AddProgress {
158
+ fn add_bytes_impl ( & self , options : ImportBytesRequest ) -> AddProgress < ' _ > {
159
159
trace ! ( "{options:?}" ) ;
160
160
let this = self . clone ( ) ;
161
161
let stream = Gen :: new ( |co| async move {
@@ -180,7 +180,7 @@ impl Blobs {
180
180
AddProgress :: new ( self , stream)
181
181
}
182
182
183
- pub fn add_path_with_opts ( & self , options : impl Into < AddPathOptions > ) -> AddProgress {
183
+ pub fn add_path_with_opts ( & self , options : impl Into < AddPathOptions > ) -> AddProgress < ' _ > {
184
184
let options = options. into ( ) ;
185
185
self . add_path_with_opts_impl ( ImportPathRequest {
186
186
path : options. path ,
@@ -190,7 +190,7 @@ impl Blobs {
190
190
} )
191
191
}
192
192
193
- fn add_path_with_opts_impl ( & self , options : ImportPathRequest ) -> AddProgress {
193
+ fn add_path_with_opts_impl ( & self , options : ImportPathRequest ) -> AddProgress < ' _ > {
194
194
trace ! ( "{:?}" , options) ;
195
195
let client = self . client . clone ( ) ;
196
196
let stream = Gen :: new ( |co| async move {
@@ -215,7 +215,7 @@ impl Blobs {
215
215
AddProgress :: new ( self , stream)
216
216
}
217
217
218
- pub fn add_path ( & self , path : impl AsRef < Path > ) -> AddProgress {
218
+ pub fn add_path ( & self , path : impl AsRef < Path > ) -> AddProgress < ' _ > {
219
219
self . add_path_with_opts ( AddPathOptions {
220
220
path : path. as_ref ( ) . to_owned ( ) ,
221
221
mode : ImportMode :: Copy ,
@@ -226,7 +226,7 @@ impl Blobs {
226
226
pub async fn add_stream (
227
227
& self ,
228
228
data : impl Stream < Item = io:: Result < Bytes > > + Send + Sync + ' static ,
229
- ) -> AddProgress {
229
+ ) -> AddProgress < ' _ > {
230
230
let inner = ImportByteStreamRequest {
231
231
format : crate :: BlobFormat :: Raw ,
232
232
scope : Scope :: default ( ) ,
@@ -521,7 +521,7 @@ pub struct Batch<'a> {
521
521
}
522
522
523
523
impl < ' a > Batch < ' a > {
524
- pub fn add_bytes ( & self , data : impl Into < Bytes > ) -> BatchAddProgress {
524
+ pub fn add_bytes ( & self , data : impl Into < Bytes > ) -> BatchAddProgress < ' _ > {
525
525
let options = ImportBytesRequest {
526
526
data : data. into ( ) ,
527
527
format : crate :: BlobFormat :: Raw ,
@@ -530,7 +530,7 @@ impl<'a> Batch<'a> {
530
530
BatchAddProgress ( self . blobs . add_bytes_impl ( options) )
531
531
}
532
532
533
- pub fn add_bytes_with_opts ( & self , options : impl Into < AddBytesOptions > ) -> BatchAddProgress {
533
+ pub fn add_bytes_with_opts ( & self , options : impl Into < AddBytesOptions > ) -> BatchAddProgress < ' _ > {
534
534
let options = options. into ( ) ;
535
535
BatchAddProgress ( self . blobs . add_bytes_impl ( ImportBytesRequest {
536
536
data : options. data ,
@@ -539,7 +539,7 @@ impl<'a> Batch<'a> {
539
539
} ) )
540
540
}
541
541
542
- pub fn add_slice ( & self , data : impl AsRef < [ u8 ] > ) -> BatchAddProgress {
542
+ pub fn add_slice ( & self , data : impl AsRef < [ u8 ] > ) -> BatchAddProgress < ' _ > {
543
543
let options = ImportBytesRequest {
544
544
data : Bytes :: copy_from_slice ( data. as_ref ( ) ) ,
545
545
format : crate :: BlobFormat :: Raw ,
@@ -548,7 +548,7 @@ impl<'a> Batch<'a> {
548
548
BatchAddProgress ( self . blobs . add_bytes_impl ( options) )
549
549
}
550
550
551
- pub fn add_path_with_opts ( & self , options : impl Into < AddPathOptions > ) -> BatchAddProgress {
551
+ pub fn add_path_with_opts ( & self , options : impl Into < AddPathOptions > ) -> BatchAddProgress < ' _ > {
552
552
let options = options. into ( ) ;
553
553
BatchAddProgress ( self . blobs . add_path_with_opts_impl ( ImportPathRequest {
554
554
path : options. path ,
0 commit comments