Skip to content

Commit 1bf8980

Browse files
committed
Fix misc Rust example unused var
1 parent 01ef88f commit 1bf8980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/examples/disassemble.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn disassemble(func: &Function) {
1414
for basic_block in &func.basic_blocks() {
1515
for instr_addr in basic_block.iter() {
1616
// 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) {
17+
if let Some((text, _len)) = text_renderer.instruction_text(instr_addr) {
1818
// TODO: This only ever appears to return a single string?
1919
let text_string: Vec<_> = text.iter().map(|t| t.to_string()).collect();
2020
println!("{}", text_string.join(""));

0 commit comments

Comments
 (0)