@@ -583,7 +583,7 @@ impl Namespaces {
583583 fn to_full_name (
584584 & self ,
585585 id : Option < NamespaceId > ,
586- name : & String ,
586+ name : & str ,
587587 ) -> Result < Option < String > > {
588588 let mut n = self . to_full ( id) ?;
589589
@@ -790,7 +790,7 @@ impl HubrisArchive {
790790 } )
791791 }
792792
793- pub fn instr_inlined ( & self , pc : u32 , base : u32 ) -> Vec < HubrisInlined > {
793+ pub fn instr_inlined ( & self , pc : u32 , base : u32 ) -> Vec < HubrisInlined < ' _ > > {
794794 let mut inlined: Vec < HubrisInlined > = vec ! [ ] ;
795795
796796 //
@@ -895,7 +895,7 @@ impl HubrisArchive {
895895 . unwrap ( )
896896 . sensors
897897 . as_ref ( )
898- . map_or ( true , |s| s. contains ( & kind) )
898+ . is_none_or ( |s| s. contains ( & kind) )
899899 {
900900 if let Some ( rails) = & d. power . as_ref ( ) . unwrap ( ) . rails {
901901 if idx < rails. len ( ) {
@@ -1821,7 +1821,7 @@ impl HubrisArchive {
18211821 }
18221822 }
18231823
1824- pub fn lookup_type ( & self , goff : HubrisGoff ) -> Result < HubrisType > {
1824+ pub fn lookup_type ( & self , goff : HubrisGoff ) -> Result < HubrisType < ' _ > > {
18251825 let r = self
18261826 . lookup_struct ( goff)
18271827 . map ( HubrisType :: Struct )
@@ -2840,7 +2840,7 @@ impl HubrisArchive {
28402840 task : HubrisTask ,
28412841 limit : u32 ,
28422842 regs : & BTreeMap < ARMRegister , u32 > ,
2843- ) -> Result < Vec < HubrisStackFrame > > {
2843+ ) -> Result < Vec < HubrisStackFrame < ' _ > > > {
28442844 let regions = self . regions ( core) ?;
28452845 let sp = regs
28462846 . get ( & ARMRegister :: SP )
@@ -6427,9 +6427,8 @@ impl HubrisModule {
64276427 . map ( |g| {
64286428 let ns = hubris. structs . get ( g) . unwrap ( ) . namespace ;
64296429
6430- if let Ok ( Some ( name) ) = hubris
6431- . namespaces
6432- . to_full_name ( ns, & name. to_string ( ) )
6430+ if let Ok ( Some ( name) ) =
6431+ hubris. namespaces . to_full_name ( ns, name)
64336432 {
64346433 format ! ( "{name} as {g}" )
64356434 } else {
@@ -6474,9 +6473,8 @@ impl HubrisModule {
64746473 . map ( |g| {
64756474 let n = hubris. enums . get ( g) . unwrap ( ) . namespace ;
64766475
6477- if let Ok ( Some ( name) ) = hubris
6478- . namespaces
6479- . to_full_name ( n, & name. to_string ( ) )
6476+ if let Ok ( Some ( name) ) =
6477+ hubris. namespaces . to_full_name ( n, name)
64806478 {
64816479 format ! ( "{name} as {g}" )
64826480 } else {
0 commit comments