@@ -195,7 +195,7 @@ impl<'a> EbpfLoader<'a> {
195
195
///
196
196
/// # Ok::<(), aya::EbpfError>(())
197
197
/// ```
198
- pub fn btf ( & mut self , btf : Option < & ' a Btf > ) -> & mut EbpfLoader < ' a > {
198
+ pub fn btf ( & mut self , btf : Option < & ' a Btf > ) -> & mut Self {
199
199
self . btf = btf. map ( Cow :: Borrowed ) ;
200
200
self
201
201
}
@@ -219,7 +219,7 @@ impl<'a> EbpfLoader<'a> {
219
219
/// # Ok::<(), aya::EbpfError>(())
220
220
/// ```
221
221
///
222
- pub fn allow_unsupported_maps ( & mut self ) -> & mut EbpfLoader < ' a > {
222
+ pub fn allow_unsupported_maps ( & mut self ) -> & mut Self {
223
223
self . allow_unsupported_maps = true ;
224
224
self
225
225
}
@@ -240,7 +240,7 @@ impl<'a> EbpfLoader<'a> {
240
240
/// # Ok::<(), aya::EbpfError>(())
241
241
/// ```
242
242
///
243
- pub fn map_pin_path < P : AsRef < Path > > ( & mut self , path : P ) -> & mut EbpfLoader < ' a > {
243
+ pub fn map_pin_path < P : AsRef < Path > > ( & mut self , path : P ) -> & mut Self {
244
244
self . map_pin_path = Some ( path. as_ref ( ) . to_owned ( ) ) ;
245
245
self
246
246
}
@@ -289,7 +289,7 @@ impl<'a> EbpfLoader<'a> {
289
289
name : & ' a str ,
290
290
value : T ,
291
291
must_exist : bool ,
292
- ) -> & mut EbpfLoader < ' a > {
292
+ ) -> & mut Self {
293
293
self . globals . insert ( name, ( value. into ( ) . bytes , must_exist) ) ;
294
294
self
295
295
}
@@ -310,7 +310,7 @@ impl<'a> EbpfLoader<'a> {
310
310
/// # Ok::<(), aya::EbpfError>(())
311
311
/// ```
312
312
///
313
- pub fn set_max_entries ( & mut self , name : & ' a str , size : u32 ) -> & mut EbpfLoader < ' a > {
313
+ pub fn set_max_entries ( & mut self , name : & ' a str , size : u32 ) -> & mut Self {
314
314
self . max_entries . insert ( name, size) ;
315
315
self
316
316
}
@@ -332,7 +332,7 @@ impl<'a> EbpfLoader<'a> {
332
332
/// # Ok::<(), aya::EbpfError>(())
333
333
/// ```
334
334
///
335
- pub fn extension ( & mut self , name : & ' a str ) -> & mut EbpfLoader < ' a > {
335
+ pub fn extension ( & mut self , name : & ' a str ) -> & mut Self {
336
336
self . extensions . insert ( name) ;
337
337
self
338
338
}
@@ -350,7 +350,7 @@ impl<'a> EbpfLoader<'a> {
350
350
/// # Ok::<(), aya::EbpfError>(())
351
351
/// ```
352
352
///
353
- pub fn verifier_log_level ( & mut self , level : VerifierLogLevel ) -> & mut EbpfLoader < ' a > {
353
+ pub fn verifier_log_level ( & mut self , level : VerifierLogLevel ) -> & mut Self {
354
354
self . verifier_log_level = level;
355
355
self
356
356
}
0 commit comments