We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01ef88f commit 1bf8980Copy full SHA for 1bf8980
rust/examples/disassemble.rs
@@ -14,7 +14,7 @@ fn disassemble(func: &Function) {
14
for basic_block in &func.basic_blocks() {
15
for instr_addr in basic_block.iter() {
16
// NOTE: If you want the annotations as well you can call text_renderer.disassembly_text
17
- if let Some((text, len)) = text_renderer.instruction_text(instr_addr) {
+ if let Some((text, _len)) = text_renderer.instruction_text(instr_addr) {
18
// TODO: This only ever appears to return a single string?
19
let text_string: Vec<_> = text.iter().map(|t| t.to_string()).collect();
20
println!("{}", text_string.join(""));
0 commit comments