File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed
Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ impl<'s> GenBtf<'s> {
8484 let mut anon_table = self . anon_types . borrow_mut ( ) ;
8585 let len = anon_table. len ( ) + 1 ; // use 1 index anon ids for backwards compat
8686 let anon_id = anon_table. entry ( t. type_id ( ) ) . or_insert ( len) ;
87- format ! ( "{}{}" , ANON_PREFIX , anon_id ) . into ( )
87+ format ! ( "{ANON_PREFIX}{anon_id}" ) . into ( )
8888 }
8989 Some ( n) => n. to_string_lossy ( ) ,
9090 }
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ impl<'btf> Btf<'btf> {
198198 } )
199199 }
200200
201- /// From raw bytes comming from an object file.
201+ /// From raw bytes coming from an object file.
202202 pub fn from_raw ( name : & ' btf str , object_file : & ' btf [ u8 ] ) -> Result < Option < Self > > {
203203 let cname = CString :: new ( name)
204204 . map_err ( |_| Error :: InvalidInput ( format ! ( "invalid path {name:?}, has null bytes" ) ) )
Original file line number Diff line number Diff line change @@ -81,12 +81,6 @@ impl Link {
8181 util:: parse_ret ( ret)
8282 }
8383
84- /// Returns the file descriptor of the link.
85- #[ deprecated( since = "0.17.0" , note = "please use `fd` instead" ) ]
86- pub fn get_fd ( & self ) -> i32 {
87- unsafe { libbpf_sys:: bpf_link__fd ( self . ptr . as_ptr ( ) ) }
88- }
89-
9084 /// Returns the file descriptor of the link.
9185 pub fn fd ( & self ) -> i32 {
9286 unsafe { libbpf_sys:: bpf_link__fd ( self . ptr . as_ptr ( ) ) }
You can’t perform that action at this time.
0 commit comments