@@ -436,14 +436,14 @@ pub fn build_rs(config: &Config) -> TokenStream {
436
436
}
437
437
438
438
pub trait DimSuffix {
439
- fn expand_dim ( & self , suffix : & str ) -> Cow < str > ;
440
- fn remove_dim ( & self ) -> Cow < str > {
439
+ fn expand_dim ( & self , suffix : & str ) -> Cow < ' _ , str > ;
440
+ fn remove_dim ( & self ) -> Cow < ' _ , str > {
441
441
self . expand_dim ( "" )
442
442
}
443
443
}
444
444
445
445
impl DimSuffix for str {
446
- fn expand_dim ( & self , suffix : & str ) -> Cow < str > {
446
+ fn expand_dim ( & self , suffix : & str ) -> Cow < ' _ , str > {
447
447
if self . contains ( "%s" ) {
448
448
self . replace ( if self . contains ( "[%s]" ) { "[%s]" } else { "%s" } , suffix)
449
449
. into ( )
@@ -454,11 +454,11 @@ impl DimSuffix for str {
454
454
}
455
455
456
456
pub trait FullName {
457
- fn fullname ( & self , ignore_group : bool ) -> Cow < str > ;
457
+ fn fullname ( & self , ignore_group : bool ) -> Cow < ' _ , str > ;
458
458
}
459
459
460
460
impl FullName for RegisterInfo {
461
- fn fullname ( & self , ignore_group : bool ) -> Cow < str > {
461
+ fn fullname ( & self , ignore_group : bool ) -> Cow < ' _ , str > {
462
462
fullname ( & self . name , & self . alternate_group , ignore_group)
463
463
}
464
464
}
@@ -471,7 +471,7 @@ pub fn fullname<'a>(name: &'a str, group: &Option<String>, ignore_group: bool) -
471
471
}
472
472
473
473
impl FullName for PeripheralInfo {
474
- fn fullname ( & self , _ignore_group : bool ) -> Cow < str > {
474
+ fn fullname ( & self , _ignore_group : bool ) -> Cow < ' _ , str > {
475
475
self . name . as_str ( ) . into ( )
476
476
}
477
477
}
0 commit comments