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"
22
22
[dev-dependencies ]
23
23
rstest = " 0.24"
24
24
tempfile = " 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 {
50
50
} ;
51
51
}
52
52
53
- pub fn has_collapsable_regions ( & self ) -> bool {
53
+ pub fn has_collapsible_regions ( & self ) -> bool {
54
54
unsafe { BNHighLevelILTokenEmitterHasCollapsableRegions ( self . handle . as_ptr ( ) ) }
55
55
}
56
56
57
- pub fn set_has_collapsable_regions ( & self , state : bool ) {
57
+ pub fn set_has_collapsible_regions ( & self , state : bool ) {
58
58
unsafe { BNHighLevelILTokenEmitterSetHasCollapsableRegions ( self . handle . as_ptr ( ) , state) } ;
59
59
}
60
60
Original file line number Diff line number Diff line change @@ -264,17 +264,17 @@ impl InteractionHandlerTask {
264
264
} ;
265
265
266
266
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 {
268
268
task(
269
269
self . ctxt,
270
- Some ( cb_custom_interation_handler_task :: <P >) ,
270
+ Some ( cb_custom_interaction_handler_task :: <P >) ,
271
271
progress_ctxt,
272
272
)
273
273
} )
274
274
}
275
275
}
276
276
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 > (
278
278
ctxt : * mut c_void ,
279
279
cur : usize ,
280
280
max : usize ,
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl LanguageRepresentationFunction for MyLangRepr {
91
91
Unimpl | Unreachable | Undef => panic ! ( ) ,
92
92
_kind => {
93
93
tokens. append ( InstructionTextToken :: new (
94
- format ! ( "other instr {:x}\n " , instr. address) ,
94
+ format ! ( "other instr 0x {:x}\n " , instr. address) ,
95
95
InstructionTextTokenKind :: Text ,
96
96
) ) ;
97
97
}
@@ -155,32 +155,32 @@ fn test_custom_language_representation() {
155
155
assert_eq ! (
156
156
format!( "{output}" ) ,
157
157
"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
184
184
"
185
185
) ;
186
186
}
You can’t perform that action at this time.
0 commit comments