@@ -126,7 +126,7 @@ pub struct WasiImplInner<'a> {
126
126
pub table : & ' a mut ResourceTable ,
127
127
}
128
128
129
- impl < ' a > wasmtime_wasi:: WasiView for WasiImplInner < ' a > {
129
+ impl wasmtime_wasi:: WasiView for WasiImplInner < ' _ > {
130
130
fn ctx ( & mut self ) -> & mut wasmtime_wasi:: WasiCtx {
131
131
self . ctx
132
132
}
@@ -171,7 +171,7 @@ impl<'a> BlobStoreDispatch<'a> {
171
171
}
172
172
}
173
173
174
- impl < ' a > wb:: Host for BlobStoreDispatch < ' a > {
174
+ impl wb:: Host for BlobStoreDispatch < ' _ > {
175
175
async fn create_container ( & mut self , _name : String ) -> Result < Resource < wbc:: Container > , String > {
176
176
Err ( "This version of Spin does not support creating containers" . to_owned ( ) )
177
177
}
@@ -208,13 +208,13 @@ impl<'a> wb::Host for BlobStoreDispatch<'a> {
208
208
}
209
209
}
210
210
211
- impl < ' a > wbt:: Host for BlobStoreDispatch < ' a > {
211
+ impl wbt:: Host for BlobStoreDispatch < ' _ > {
212
212
fn convert_error ( & mut self , error : String ) -> anyhow:: Result < String > {
213
213
Ok ( error)
214
214
}
215
215
}
216
216
217
- impl < ' a > wbt:: HostIncomingValue for BlobStoreDispatch < ' a > {
217
+ impl wbt:: HostIncomingValue for BlobStoreDispatch < ' _ > {
218
218
async fn incoming_value_consume_sync ( & mut self , self_ : Resource < wbt:: IncomingValue > ) -> Result < Vec < u8 > , String > {
219
219
let mut incoming = self . take_incoming_value ( self_) . await ?;
220
220
incoming. as_mut ( ) . consume_sync ( ) . await . map_err ( |e| e. to_string ( ) )
@@ -240,7 +240,7 @@ impl<'a> wbt::HostIncomingValue for BlobStoreDispatch<'a> {
240
240
}
241
241
}
242
242
243
- impl < ' a > wbt:: HostOutgoingValue for BlobStoreDispatch < ' a > {
243
+ impl wbt:: HostOutgoingValue for BlobStoreDispatch < ' _ > {
244
244
async fn new_outgoing_value ( & mut self ) -> anyhow:: Result < Resource < wbt:: OutgoingValue > > {
245
245
let outgoing_value = OutgoingValue :: new ( ) ;
246
246
let rep = self . outgoing_values . write ( ) . await . push ( outgoing_value) . unwrap ( ) ;
@@ -286,9 +286,9 @@ impl<'a> wbt::HostOutgoingValue for BlobStoreDispatch<'a> {
286
286
}
287
287
288
288
// TODO: TBD if these belong on BSD or some other struct (like the one that maps to a Container resource JUST SAYIN)
289
- impl < ' a > wbc:: Host for BlobStoreDispatch < ' a > { }
289
+ impl wbc:: Host for BlobStoreDispatch < ' _ > { }
290
290
291
- impl < ' a > wbc:: HostContainer for BlobStoreDispatch < ' a > {
291
+ impl wbc:: HostContainer for BlobStoreDispatch < ' _ > {
292
292
async fn name ( & mut self , self_ : Resource < wbc:: Container > ) -> Result < String , String > {
293
293
let lock = self . containers . read ( ) . await ;
294
294
let container = lock. get ( self_. rep ( ) ) . ok_or_else ( ||
@@ -387,7 +387,7 @@ impl<'a> wbc::HostContainer for BlobStoreDispatch<'a> {
387
387
}
388
388
}
389
389
390
- impl < ' a > wbc:: HostStreamObjectNames for BlobStoreDispatch < ' a > {
390
+ impl wbc:: HostStreamObjectNames for BlobStoreDispatch < ' _ > {
391
391
async fn read_stream_object_names ( & mut self , self_ : Resource < wbc:: StreamObjectNames > , len : u64 ) -> Result < ( Vec < String > , bool ) , String > {
392
392
let mut lock = self . object_names . write ( ) . await ;
393
393
let object_names = lock. get_mut ( self_. rep ( ) ) . ok_or_else ( ||
0 commit comments