File tree Expand file tree Collapse file tree 4 files changed +36
-33
lines changed
Expand file tree Collapse file tree 4 files changed +36
-33
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,7 @@ thiserror = "2.0"
2222[dev-dependencies ]
2323rstest = " 0.24"
2424tempfile = " 3.15"
25- serial_test = " 3.2"
25+ serial_test = " 3.2"
26+
27+ [package .metadata .typos ]
28+ default.extend-ignore-re = [" Collapsable" ]
Original file line number Diff line number Diff line change @@ -50,11 +50,11 @@ impl HighLevelILTokenEmitter {
5050 } ;
5151 }
5252
53- pub fn has_collapsable_regions ( & self ) -> bool {
53+ pub fn has_collapsible_regions ( & self ) -> bool {
5454 unsafe { BNHighLevelILTokenEmitterHasCollapsableRegions ( self . handle . as_ptr ( ) ) }
5555 }
5656
57- pub fn set_has_collapsable_regions ( & self , state : bool ) {
57+ pub fn set_has_collapsible_regions ( & self , state : bool ) {
5858 unsafe { BNHighLevelILTokenEmitterSetHasCollapsableRegions ( self . handle . as_ptr ( ) , state) } ;
5959 }
6060
Original file line number Diff line number Diff line change @@ -264,17 +264,17 @@ impl InteractionHandlerTask {
264264 } ;
265265
266266 let progress_ctxt = progress as * mut P as * mut c_void ;
267- ffi_wrap ! ( "custom_interation_run_progress_dialog " , unsafe {
267+ ffi_wrap ! ( "custom_interaction_run_progress_dialog " , unsafe {
268268 task(
269269 self . ctxt,
270- Some ( cb_custom_interation_handler_task :: <P >) ,
270+ Some ( cb_custom_interaction_handler_task :: <P >) ,
271271 progress_ctxt,
272272 )
273273 } )
274274 }
275275}
276276
277- unsafe extern "C" fn cb_custom_interation_handler_task < P : FnMut ( usize , usize ) -> bool > (
277+ unsafe extern "C" fn cb_custom_interaction_handler_task < P : FnMut ( usize , usize ) -> bool > (
278278 ctxt : * mut c_void ,
279279 cur : usize ,
280280 max : usize ,
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl LanguageRepresentationFunction for MyLangRepr {
9191 Unimpl | Unreachable | Undef => panic ! ( ) ,
9292 _kind => {
9393 tokens. append ( InstructionTextToken :: new (
94- format ! ( "other instr {:x}\n " , instr. address) ,
94+ format ! ( "other instr 0x {:x}\n " , instr. address) ,
9595 InstructionTextTokenKind :: Text ,
9696 ) ) ;
9797 }
@@ -155,32 +155,32 @@ fn test_custom_language_representation() {
155155 assert_eq ! (
156156 format!( "{output}" ) ,
157157 "block 26
158- other instr 36775
159- other instr 3679e
160- other instr 3679e
161- other instr 367ba
162- other instr 367e6
163- other instr 3682f
164- other instr 3682f
165- other instr 36834
166- other instr 3683e
167- other instr 3684e
168- other instr 36867
169- other instr 36881
170- other instr 36881
171- other instr 36881
172- other instr 36896
173- other instr 368a0
174- other instr 368bb
175- other instr 368d2
176- other instr 3694a
177- other instr 36960
178- other instr 369e1
179- other instr 369ec
180- other instr 36a2e
181- other instr 36ab5
182- other instr 36abd
183- other instr 36ac2
158+ other instr 0x36775
159+ other instr 0x3679e
160+ other instr 0x3679e
161+ other instr 0x367ba
162+ other instr 0x367e6
163+ other instr 0x3682f
164+ other instr 0x3682f
165+ other instr 0x36834
166+ other instr 0x3683e
167+ other instr 0x3684e
168+ other instr 0x36867
169+ other instr 0x36881
170+ other instr 0x36881
171+ other instr 0x36881
172+ other instr 0x36896
173+ other instr 0x368a0
174+ other instr 0x368bb
175+ other instr 0x368d2
176+ other instr 0x3694a
177+ other instr 0x36960
178+ other instr 0x369e1
179+ other instr 0x369ec
180+ other instr 0x36a2e
181+ other instr 0x36ab5
182+ other instr 0x36abd
183+ other instr 0x36ac2
184184"
185185 ) ;
186186}
You can’t perform that action at this time.
0 commit comments